Commit f260fef2 by 无尘

fix:修改素材

parent 03b65573
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.77c75b732ba2486dc8cfd147b759bae1.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.f90962229934cdbba835.js></script><script type=text/javascript src=./static/js/vendor.ec5b5af1da21f97836b5.js></script><script type=text/javascript src=./static/js/app.edbb06faf02affa44255.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 rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.e5adeb84c3ff9c4e2d8209f637865ee5.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.50416d237b9b8ece5236.js></script><script type=text/javascript src=./static/js/vendor.ec5b5af1da21f97836b5.js></script><script type=text/javascript src=./static/js/app.f0a7fcf9b02743d37a64.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"6CLc":function(t,e){},CJE6:function(t,e){},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Zx22"),s=a("Ch4/"),o=a("P9l9"),i=a("PI0u"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",filterValue:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部状态",value:""},{label:"已同意",value:"1"},{label:"已拒绝",value:"2"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(i.a)(function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};Object(o.d)("/haoban-manage3-web/get-staff-info",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.userData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;Object(o.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this;t&&(e.currentPage=1);var a={wxEnterpriseId:e.wxEnterpriseId,auditStatus:e.filterValue,auditFlag:"1",search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.filterBrand};Object(o.a)("/haoban-manage3-web/audit/find-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.total=a.result.totalCount);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",2),this.getTableList(),this.getBrandData()},components:{storeChange:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head"},[a("el-input",{staticClass:"w-250 ",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.searchEnterFun(a,t.searchInput);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.getTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),t._v(" "),t._l(t.brandOptions,function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})],2)],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.auditType?"门店信息变更":1==e.row.auditType?"新增成员":2==e.row.auditType?"成员离职":"转移成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.userData.headImg?a("img",{attrs:{src:t.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(t.userData.staffName||"--")+" ( "+t._s(t.userData.position||"--")+")\n ")]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==t.userData.nationCode?t.userData.phoneNumber:"+"+t.userData.nationCode+"-"+t.userData.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属部门:")]),a("span",{staticClass:"w-130"},[t._v(t._s(t.userData.departmentName||"--"))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[e.row.commitStaffImg?a("img",{attrs:{src:e.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[t._v(t._s(e.row.commitStaffName))]),t._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.row.commitStoreName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[6!=e.row.changeField?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),6==e.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.auditStatus?"bg-f5222d":"bg-52c41a"]}),1==e.row.auditStatus?a("span",[t._v("已同意")]):t._e(),t._v(" "),2==e.row.auditStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.auditReason,placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("已拒绝")])]):t._e()]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("6CLc")},"data-v-bbdf590c",null);e.default=c.exports},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),s=n.getFullYear(),o=n.getMonth()+1,i=n.getDate();return s+e+a(o)+e+a(i)+e}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(n,s,!1,function(t){a("CJE6")},"data-v-5a02018c",null);e.a=o.exports}});
\ No newline at end of file
webpackJsonp([10],{CJE6:function(t,e){},CLYF:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Zx22"),s=a("Ch4/"),o=a("P9l9"),i=a("PI0u"),r={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",filterValue:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部状态",value:""},{label:"已同意",value:"1"},{label:"已拒绝",value:"2"}],searchValue:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,applyInfo:{},showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(i.a)(function(t){if(!String(t.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),toggleReason:function(t){t.visible=!0,this.tableData.forEach(function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)})},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};Object(o.d)("/haoban-manage3-web/get-staff-info",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.userData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showStoreChange:function(t){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;Object(o.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):a.result&&a.result.length&&(t.brandOptions=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this;t&&(e.currentPage=1);var a={wxEnterpriseId:e.wxEnterpriseId,auditStatus:e.filterValue,auditFlag:"1",search:e.searchValue||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.filterBrand};Object(o.a)("/haoban-manage3-web/audit/find-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],void(e.total=a.result.totalCount);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",2),this.getTableList(),this.getBrandData()},components:{storeChange:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"reviewed-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head"},[a("el-input",{staticClass:"w-250 ",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.searchEnterFun(a,t.searchInput);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部状态"},on:{change:t.getTableList},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}},t._l(t.filterOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.getTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),t._v(" "),t._l(t.brandOptions,function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})],2)],1),t._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.auditType?"门店信息变更":1==e.row.auditType?"新增成员":2==e.row.auditType?"成员离职":"转移成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){t.showSingleInfo(e.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.userData.headImg?a("img",{attrs:{src:t.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[t._v("\n "+t._s(t.userData.staffName||"--")+" ( "+t._s(t.userData.position||"--")+")\n ")]),t._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[t._v("手机号:")]),a("span",{staticClass:"w-130"},[t._v(t._s("86"==t.userData.nationCode?t.userData.phoneNumber:"+"+t.userData.nationCode+"-"+t.userData.phoneNumber))])]),t._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[t._v("所属部门:")]),a("span",{staticClass:"w-130"},[t._v(t._s(t.userData.departmentName||"--"))])])])])]),t._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[e.row.commitStaffImg?a("img",{attrs:{src:e.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[t._v(t._s(e.row.commitStaffName))]),t._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[t._v(t._s(e.row.commitStoreName))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[6!=e.row.changeField?a("span",[t._v(t._s(e.row.detail))]):t._e(),t._v(" "),6==e.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[t._v(t._s(e.row.detail))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showStoreChange(e.row)}}},[t._v("查看详情")])],1):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.auditStatus?"bg-f5222d":"bg-52c41a"]}),1==e.row.auditStatus?a("span",[t._v("已同意")]):t._e(),t._v(" "),2==e.row.auditStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.auditReason,placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("已拒绝")])]):t._e()]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[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)])]),t._v(" "),a("storeChange",{attrs:{storeChangeData:t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("e5zu")},"data-v-419bf3b8",null);e.default=c.exports},Zx22:function(t,e,a){"use strict";var n={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(t,e){function a(t){return t>9?""+t:"0"+t}var n=new Date(t),s=n.getFullYear(),o=n.getMonth()+1,i=n.getDate();return s+e+a(o)+e+a(i)+e}},watch:{value:function(t,e){this.customDialog=t},storeChangeData:function(t,e){this.leftData=t.beforeContent,this.rightData=t.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]})],2)])]),t._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),t._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(n,s,!1,function(t){a("CJE6")},"data-v-5a02018c",null);e.a=o.exports},e5zu:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{"+ZBk":function(e,t){},"7/Zw":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),o=a("P9l9"),n=a("Ch4/"),l=a("PI0u"),i={name:"gic-select-store",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1,this.$emit("returnStores",this.dailyRuleForm.stores)},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length,this.$emit("returnStores",this.dailyRuleForm.stores)},toInput:Object(l.a)(function(e,t){""!=this.searchSelect&&(this.stores=[],this.pageNum=1,this.getStoreData())},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=[],this.pageNum=1,this.getStoreData()},getStoreData:function(){var e=this,t={searchName:e.searchSelect,gicEnterpriseId:e.brandId,pageNum:e.pageNum,pageSize:e.pageSize};Object(o.a)("/haoban-app-customer-web/cardCoupon/get-store-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.select=!1,e.selectData.includes(t.storeId)&&(t.select=!0)}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.result))||[],e.storesCopy=JSON.parse(r()(a.result.result))||[]):a.result.result.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.totalCount&&(e.pageNum++,e.$nextTick(function(){e.getStoreData()})));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e){e&&(this.checkAll=!1,this.isIndeterminate=!1,this.stores=[],this.storesCopy=[],this.searchSelect="",this.getStoreData())},selectData:function(e,t){e.length?this.dailyRuleForm.stores=JSON.parse(r()(e)):this.dailyRuleForm.stores=[]}},mounted:function(){this.brandId&&(this.stores=[],this.storesCopy=[],this.getStoreData()),this.selectData.length?this.dailyRuleForm.stores=JSON.parse(r()(this.selectData)):this.dailyRuleForm.stores=[]}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num cursor-pointer w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])},staticRenderFns:[]};var d=a("VU/8")(i,c,!1,function(e){a("eeoA")},"data-v-47878cc5",null).exports,u=a("Ggl+"),p={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,selectCoupCardId:this.coupCardId||"",tableData:[],currentPage:1,pageSize:6,total:0}},methods:{handleClose:function(e){this.$emit("closeCard")},toConfirm:function(){var e=this,t={};e.tableData.forEach(function(a){a.coupCardId==e.selectCoupCardId&&(t=a)}),e.$emit("returnId",e.selectCoupCardId,t)},toCancel:function(){this.$emit("closeCard")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={cardName:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(o.a)("/haoban-app-customer-web/cardCoupon/find-select-card-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getTableList()},coupCardId:function(e,t){e&&(this.selectCoupCardId=e)}},mounted:function(){this.selectCoupCardId=this.coupCardId,this.brandId&&this.getTableList()}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"卡券选择",visible:e.dialogVisible,width:"994px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"search-div"},[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"})]),a("span",{staticClass:"search-tip p-l-20 font-14 color-909399"},[e._v("仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"+e._s(e.total)+"张")])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:1==t.row.selected,label:t.row.coupCardId},model:{value:e.selectCoupCardId,callback:function(t){e.selectCoupCardId=t},expression:"selectCoupCardId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cardName",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.subName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"effectDateString",label:"有效期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.storeMode?"所有门店":1==t.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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("div",{staticClass:"dialog-footer m-b-20",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toConfirm}},[e._v("确认")])],1)])},staticRenderFns:[]};var f=a("VU/8")(p,m,!1,function(e){a("F0H0")},"data-v-3f3f56a1",null).exports,h=a("3E4D"),g={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{selectCard:f,gicSelectGroup:u.a,gicSelectStore:d},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",selectCoupCard:{},formData:{id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}],sendRange:[{validator:function(t,a,s){return""==a?s(new Error("请选择发送范围")):"1"!=a&&"2"!=a||e.formData.selectList.length?void s():s(new Error("请选择发送范围"))},trigger:"change"}],sendType:[{validator:function(t,a,s){return""==a?s(new Error("请选择券发放总数")):"1"!=a||e.formData.totalSendTimes?void s():s(new Error("请选择券发放总数"))},trigger:"change"}],eachSendTimes:[{required:!0,message:"请输入券发放张数",trigger:"blur"}]},cardSelectShow:!1,addTag:!0}},methods:{returnStores:function(e){console.log("store:",e),this.formData.selectList=JSON.parse(r()(e))},checkGroupIds:function(e){console.log(e),this.formData.selectList=JSON.parse(r()(e))},showCard:function(){this.cardSelectShow=!0},closeCard:function(){this.cardSelectShow=!1},returnId:function(e,t){this.formData.coupCardId=e,this.selectCoupCard=t,this.cardSelectShow=!1},submitForm:Object(l.a)(function(e,t){var a=this;return!!("1"!=a.formData.sendRange&&"2"!=a.formData.sendRange||a.formData.selectList.length)&&(!("1"==a.formData.sendType&&!a.formData.totalSendTimes)&&(!("1"==a.formData.receiveType&&!a.formData.totalReceiveTimes)&&void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})))},300),postSaveCard:function(e){var t=this,a={id:t.formData.id,coupCardId:t.formData.coupCardId,sendRange:t.formData.sendRange,selectList:1==t.formData.sendRange?t.formData.selectList.map(function(e){return e.storeGroupId}).join(","):2==t.formData.sendRange?t.formData.selectList.join(","):"",eachSendTimes:t.formData.eachSendTimes,sendType:t.formData.sendType,totalSendTimes:t.formData.totalSendTimes,gicEnterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};Object(o.d)(t.$route.query.coupCardId&&!t.addTag?"/haoban-app-customer-web/cardCoupon/edit-card-coup":"/haoban-app-customer-web/cardCoupon/add-card-coup",a).then(function(a){var s=a.data;1==s.errorCode&&(h.a.showmsg(t.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),e?(t.addTag=!0,t.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},t.selectCoupCard={}):t.$router.push("/cardList")),n.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/onlineChatSet?activeTab="+e.$route.query.activeTab+"&appIcon="+e.$route.query.appIcon)}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,t={coupCardId:e.$route.query.coupCardId,gicEnterpriseId:e.brandId};Object(o.a)("/haoban-app-customer-web/cardCoupon/find-card-coup-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.detail?(a.result.list&&a.result.list.forEach(function(e){e.label=e.name,e.departmentId=e.id,e.storeGroupId=e.id,e.storeGroupName=e.name,e.departmentName=e.name,2==a.result.detail.sendRange&&(e.storeId=e.id)}),e.selectCoupCard=a.result.gicDetail,e.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,sendRange:String(a.result.detail.sendRange),selectList:0!=a.result.detail.sendRange?2==a.result.detail.sendRange?a.result.list.map(function(e){return e.id}):a.result.list:[],eachSendTimes:a.result.detail.eachSendTimes,sendType:String(a.result.detail.sendType),totalSendTimes:a.result.detail.totalSendTimes},!1):(e.addTag=!1,h.a.showmsg("请先保存上一个商户的设置内容","warning"),!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){if(e&&this.$route.query.coupCardId&&!this.addTag)return this.activeBrand=e,this.getCardData(),!1;e&&(this.addTag=!0,this.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},this.selectCoupCard={})},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.activeBrand=this.brandId,this.$route.query.coupCardId&&this.brandId&&(this.addTag=!1,this.getCardData())}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择卡券",prop:"coupCardId"}},[e.formData.coupCardId?e._e():a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCard}},[a("span",{staticClass:"el-icon-plus font-12 color-909399"}),a("span",{staticClass:"font-14 color-909399"},[e._v("添加卡券")])]),e._v(" "),e.formData.coupCardId?a("div",{staticClass:"selected-card-body flex"},[a("div",{staticClass:"selected-card font-14 color-909399"},[e._v(e._s(e.selectCoupCard.cardName)+" | "+e._s(e.selectCoupCard.effectDateString)+" | 限制"+e._s(e.selectCoupCard.cardLimit)+"张/人 | 适用门店:"+e._s(0==e.selectCoupCard.storeMode?"所有门店":1==e.selectCoupCard.storeMode?"部分分组":"部分门店")+" | 库存:"+e._s(e.selectCoupCard.couponStock))]),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:e.showCard}},[e._v("重新选择")])],1):e._e()]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分分组")]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.formData.selectList},on:{checkGroupIds:e.checkGroupIds}})],1):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分门店")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-store",{attrs:{brandId:e.brandId,selectData:e.formData.selectList},on:{returnStores:e.returnStores}})],1):e._e(),e._v(" "),"1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择发送范围")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券限制每个会员最大发放次数",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("券发放张数")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",min:0,max:20},model:{value:e.formData.eachSendTimes,callback:function(t){e.$set(e.formData,"eachSendTimes",t)},expression:"formData.eachSendTimes"}}),a("span",{staticClass:"font-14 color-c0c4cc p-l-20"},[e._v("最多20张每人")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券发放总数,不得超过券库存数",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("券发放总数")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("无限制")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("限制总数")]),1==e.formData.sendType?a("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:999999999},model:{value:e.formData.totalSendTimes,callback:function(t){e.$set(e.formData,"totalSendTimes",t)},expression:"formData.totalSendTimes"}}):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.coupCardId&&!e.addTag?"编辑":"新建"))]),e._v(" "),e.$route.query.coupCardId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),e.cardSelectShow?a("select-card",{attrs:{coupCardId:e.formData.coupCardId,brandId:e.brandId},on:{closeCard:e.closeCard,returnId:e.returnId}}):e._e()],1)},staticRenderFns:[]};var v=a("VU/8")(g,b,!1,function(e){a("+ZBk")},"data-v-fbefecae",null);t.default=v.exports},F0H0:function(e,t){},eeoA:function(e,t){}});
\ No newline at end of file
webpackJsonp([11],{"+ZBk":function(e,t){},"7/Zw":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),o=a("P9l9"),n=a("Ch4/"),l=a("PI0u"),i={name:"gic-select-store",props:{width:{type:String,default:function(){return"357px"}},selectData:{type:[Object,Array],default:function(){return[]}},brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",enterpriseId:this.brandId,checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1,this.$emit("returnStores",this.dailyRuleForm.stores)},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length,this.$emit("returnStores",this.dailyRuleForm.stores)},toInput:Object(l.a)(function(e,t){""!=this.searchSelect&&(this.stores=[],this.pageNum=1,this.getStoreData())},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=[],this.pageNum=1,this.getStoreData()},getStoreData:function(){var e=this,t={searchName:e.searchSelect,gicEnterpriseId:e.brandId,pageNum:e.pageNum,pageSize:e.pageSize};Object(o.a)("/haoban-app-customer-web/cardCoupon/get-store-list",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.select=!1,e.selectData.includes(t.storeId)&&(t.select=!0)}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.result))||[],e.storesCopy=JSON.parse(r()(a.result.result))||[]):a.result.result.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.totalCount&&(e.pageNum++,e.$nextTick(function(){e.getStoreData()})));n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e){e&&(this.checkAll=!1,this.isIndeterminate=!1,this.stores=[],this.storesCopy=[],this.searchSelect="",this.getStoreData())},selectData:function(e,t){e.length?this.dailyRuleForm.stores=JSON.parse(r()(e)):this.dailyRuleForm.stores=[]}},mounted:function(){this.brandId&&(this.stores=[],this.storesCopy=[],this.getStoreData()),this.selectData.length?this.dailyRuleForm.stores=JSON.parse(r()(this.selectData)):this.dailyRuleForm.stores=[]}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num cursor-pointer w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])},staticRenderFns:[]};var d=a("VU/8")(i,c,!1,function(e){a("HoLU")},"data-v-67522a34",null).exports,u=a("Ggl+"),p={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,selectCoupCardId:this.coupCardId||"",tableData:[],currentPage:1,pageSize:6,total:0}},methods:{handleClose:function(e){this.$emit("closeCard")},toConfirm:function(){var e=this,t={};e.tableData.forEach(function(a){a.coupCardId==e.selectCoupCardId&&(t=a)}),e.$emit("returnId",e.selectCoupCardId,t)},toCancel:function(){this.$emit("closeCard")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},200),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={cardName:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(o.a)("/haoban-app-customer-web/cardCoupon/find-select-card-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!1;n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getTableList()},coupCardId:function(e,t){e&&(this.selectCoupCardId=e)}},mounted:function(){this.selectCoupCardId=this.coupCardId,this.brandId&&this.getTableList()}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"卡券选择",visible:e.dialogVisible,width:"994px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"search-div"},[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"})]),a("span",{staticClass:"search-tip p-l-20 font-14 color-909399"},[e._v("仅支持选择“领取限制>=100”的卡券,系统已自动过滤不符合条件的卡券,符合条件的卡券共"+e._s(e.total)+"张")])],1),e._v(" "),a("div",{staticClass:"chat-log-content boder-box m-t-20"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{disabled:1==t.row.selected,label:t.row.coupCardId},model:{value:e.selectCoupCardId,callback:function(t){e.selectCoupCardId=t},expression:"selectCoupCardId"}},[e._v(e._s(""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cardName",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.subName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"effectDateString",label:"有效期","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"cardLimit",label:"领取限制","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"storeMode",label:"适用门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.storeMode?"所有门店":1==t.row.storeMode?"部分分组":"部分门店")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"couponStock",label:"库存","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"getedQuantity",label:"领取次数","show-overflow-tooltip":""}})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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("div",{staticClass:"dialog-footer m-b-20",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toConfirm}},[e._v("确认")])],1)])},staticRenderFns:[]};var f=a("VU/8")(p,m,!1,function(e){a("F0H0")},"data-v-3f3f56a1",null).exports,h=a("3E4D"),g={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{selectCard:f,gicSelectGroup:u.a,gicSelectStore:d},data:function(){var e=this;return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",selectCoupCard:{},formData:{id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},rules:{coupCardId:[{required:!0,message:"请选择卡券",trigger:"change"}],sendRange:[{validator:function(t,a,s){return""==a?s(new Error("请选择发送范围")):"1"!=a&&"2"!=a||e.formData.selectList.length?void s():s(new Error("请选择发送范围"))},trigger:"change"}],sendType:[{validator:function(t,a,s){return""==a?s(new Error("请选择券发放总数")):"1"!=a||e.formData.totalSendTimes?void s():s(new Error("请选择券发放总数"))},trigger:"change"}],eachSendTimes:[{required:!0,message:"请输入券发放张数",trigger:"blur"}]},cardSelectShow:!1,addTag:!0}},methods:{returnStores:function(e){console.log("store:",e),this.formData.selectList=JSON.parse(r()(e))},checkGroupIds:function(e){console.log(e),this.formData.selectList=JSON.parse(r()(e))},showCard:function(){this.cardSelectShow=!0},closeCard:function(){this.cardSelectShow=!1},returnId:function(e,t){this.formData.coupCardId=e,this.selectCoupCard=t,this.cardSelectShow=!1},submitForm:Object(l.a)(function(e,t){var a=this;return!!("1"!=a.formData.sendRange&&"2"!=a.formData.sendRange||a.formData.selectList.length)&&(!("1"==a.formData.sendType&&!a.formData.totalSendTimes)&&(!("1"==a.formData.receiveType&&!a.formData.totalReceiveTimes)&&void a.$refs[e].validate(function(e){e&&a.postSaveCard(t)})))},300),postSaveCard:function(e){var t=this,a={id:t.formData.id,coupCardId:t.formData.coupCardId,sendRange:t.formData.sendRange,selectList:1==t.formData.sendRange?t.formData.selectList.map(function(e){return e.storeGroupId}).join(","):2==t.formData.sendRange?t.formData.selectList.join(","):"",eachSendTimes:t.formData.eachSendTimes,sendType:t.formData.sendType,totalSendTimes:t.formData.totalSendTimes,gicEnterpriseId:t.brandId,wxEnterpriseId:t.wxEnterpriseId};Object(o.d)(t.$route.query.coupCardId&&!t.addTag?"/haoban-app-customer-web/cardCoupon/edit-card-coup":"/haoban-app-customer-web/cardCoupon/add-card-coup",a).then(function(a){var s=a.data;1==s.errorCode&&(h.a.showmsg(t.$route.query.coupCardId?"编辑卡券成功":"新建卡券成功","success"),e?(t.addTag=!0,t.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},t.selectCoupCard={}):t.$router.push("/cardList")),n.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/onlineChatSet?activeTab="+e.$route.query.activeTab+"&appIcon="+e.$route.query.appIcon)}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,t={coupCardId:e.$route.query.coupCardId,gicEnterpriseId:e.brandId};Object(o.a)("/haoban-app-customer-web/cardCoupon/find-card-coup-detail",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.detail?(a.result.list&&a.result.list.forEach(function(e){e.label=e.name,e.departmentId=e.id,e.storeGroupId=e.id,e.storeGroupName=e.name,e.departmentName=e.name,2==a.result.detail.sendRange&&(e.storeId=e.id)}),e.selectCoupCard=a.result.gicDetail,e.formData={id:a.result.detail.id,coupCardId:a.result.detail.coupCardId,sendRange:String(a.result.detail.sendRange),selectList:0!=a.result.detail.sendRange?2==a.result.detail.sendRange?a.result.list.map(function(e){return e.id}):a.result.list:[],eachSendTimes:a.result.detail.eachSendTimes,sendType:String(a.result.detail.sendType),totalSendTimes:a.result.detail.totalSendTimes},!1):(e.addTag=!1,h.a.showmsg("请先保存上一个商户的设置内容","warning"),!1);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){if(e&&this.$route.query.coupCardId&&!this.addTag)return this.activeBrand=e,this.getCardData(),!1;e&&(this.addTag=!0,this.formData={id:"",coupCardId:"",sendRange:"0",selectList:[],eachSendTimes:3,sendType:"0",totalSendTimes:0},this.selectCoupCard={})},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","1"),this.activeBrand=this.brandId,this.$route.query.coupCardId&&this.brandId&&(this.addTag=!1,this.getCardData())}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"new-card-body border-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"选择卡券",prop:"coupCardId"}},[e.formData.coupCardId?e._e():a("div",{staticClass:"card-add-btn text-center cursor-pointer",on:{click:e.showCard}},[a("span",{staticClass:"el-icon-plus font-12 color-909399"}),a("span",{staticClass:"font-14 color-909399"},[e._v("添加卡券")])]),e._v(" "),e.formData.coupCardId?a("div",{staticClass:"selected-card-body flex"},[a("div",{staticClass:"selected-card font-14 color-909399"},[e._v(e._s(e.selectCoupCard.cardName)+" | "+e._s(e.selectCoupCard.effectDateString)+" | 限制"+e._s(e.selectCoupCard.cardLimit)+"张/人 | 适用门店:"+e._s(0==e.selectCoupCard.storeMode?"所有门店":1==e.selectCoupCard.storeMode?"部分分组":"部分门店")+" | 库存:"+e._s(e.selectCoupCard.couponStock))]),e._v(" "),a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:e.showCard}},[e._v("重新选择")])],1):e._e()]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券的发送范围设置",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("选择发送范围")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分分组")]),e._v(" "),1==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.formData.selectList},on:{checkGroupIds:e.checkGroupIds}})],1):e._e(),e._v(" "),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("部分门店")]),e._v(" "),2==e.formData.sendRange?a("div",{staticClass:"w-240 inline-block item-cell-select"},[a("gic-select-store",{attrs:{brandId:e.brandId,selectData:e.formData.selectList},on:{returnStores:e.returnStores}})],1):e._e(),e._v(" "),"1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择发送范围")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券限制每个会员最大发放次数",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("券发放张数")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-input-number",{staticClass:"w-90",attrs:{"controls-position":"right",min:0,max:20},model:{value:e.formData.eachSendTimes,callback:function(t){e.$set(e.formData,"eachSendTimes",t)},expression:"formData.eachSendTimes"}}),a("span",{staticClass:"font-14 color-c0c4cc p-l-20"},[e._v("最多20张每人")])],1)]),e._v(" "),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px",cursor:"pointer"},attrs:{for:"name"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"卡券发放总数,不得超过券库存数",placement:"top-start"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("券发放总数")])])],1),e._v(" "),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"120px"}},[a("el-radio",{attrs:{label:"0"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("无限制")]),e._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:e.formData.sendType,callback:function(t){e.$set(e.formData,"sendType",t)},expression:"formData.sendType"}},[e._v("限制总数")]),1==e.formData.sendType?a("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:999999999},model:{value:e.formData.totalSendTimes,callback:function(t){e.$set(e.formData,"totalSendTimes",t)},expression:"formData.totalSendTimes"}}):e._e()],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.coupCardId&&!e.addTag?"编辑":"新建"))]),e._v(" "),e.$route.query.coupCardId?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1),e._v(" "),e.cardSelectShow?a("select-card",{attrs:{coupCardId:e.formData.coupCardId,brandId:e.brandId},on:{closeCard:e.closeCard,returnId:e.returnId}}):e._e()],1)},staticRenderFns:[]};var v=a("VU/8")(g,b,!1,function(e){a("+ZBk")},"data-v-fbefecae",null);t.default=v.exports},F0H0:function(e,t){},HoLU:function(e,t){}});
\ No newline at end of file
webpackJsonp([12],{"XCb+":function(e,t){},XrDD:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),o=a.n(s),i=a("LRn8"),n=a("fPyK"),l=a("swl+"),r=a("P9l9"),c=a("Ch4/"),d=a("3E4D"),m={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:"",taskType:""},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成(已拨通)",value:"1"},{label:"已完成(放弃)",value:"2"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],typeOptions:[{label:"所有类型",value:""},{label:"ECM话务任务",value:"1"},{label:"不良评价",value:"0"},{label:"会话任务",value:"5"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewData:{},previewVisible:!1,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(r.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closePreview:function(){this.previewData={}},getPreviewData:function(e,t){var a=this,s={taskId:t.taskId};a.previewVisible=!0,Object(r.d)("/haoban-app-tel-task-three-web/task/app-task-detail",s).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){this.selectRadio=e},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,s={taskId:t.taskId,enterpriseId:a.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/del-one",s).then(function(e){var t=e.data;if(1==t.errorCode)return d.a.showmsg("删除成功","success"),void a.getTableList();c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"task"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={ecmId:t.$route.query.ecmId||"",taskType:t.conditionObj.taskType,storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.taskUrl&&!e.taskUrl.length||(e.taskUrl=[])}),t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);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())}},mounted:function(){this.$emit("showTab","11"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:i.a,qrcodeDialog:n.a,detailPreview:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-135",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-135 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e.$route.query.ecmId?e._e():a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.taskType,callback:function(t){e.$set(e.conditionObj,"taskType",t)},expression:"conditionObj.taskType"}},e._l(e.typeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象","show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s("0"==t.row.taskType?"不良评价":"5"==t.row.taskType?"会话任务":"话务任务"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":"",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 完成情况包含3种"),a("br"),e._v("\n 1.完成拨打任务;"),a("br"),e._v("\n 2.完成任务(无需拨打);"),a("br"),e._v("\n 3.完成任务(放弃拨打);"),a("br"),e._v("\n 4.未完成任务\n ")]),e._v(" "),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("完成情况")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isCompleted)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operationStaffName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.reason?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:t.row.reason}},[a("i",{staticClass:"el-icon-chat-dot-square cursor-pointer color-909399",staticStyle:{"font-size":"20px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"图片"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.taskUrls,function(t,s){return a("el-popover",{key:s,attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:t,alt:""}})]),e._v(" "),a("img",{staticClass:"task-imgs",attrs:{slot:"reference",src:t,alt:""},slot:"reference"})])})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.getPreviewData(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},on:{closePreview:e.closePreview},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("nxmy")},"data-v-7c073f31",null);t.default=f.exports},nxmy:function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),o=a.n(s),i=a("fZjL"),n=a.n(i),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var s=a%864e5,o=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(o/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(o()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(o()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",s!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}))]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("XCb+")},"data-v-26502be2",null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([13],{JwJ7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),i=a.n(s),o=a("LRn8"),n=a("fPyK"),l=a("swl+"),r=a("P9l9"),c=a("Ch4/"),d=a("3E4D"),m={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"所以完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所以逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewVisible:!1,previewData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(r.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getPreviewData:function(e,t){var a=this,s={storeId:a.conditionObj.storeId,taskId:t.taskId,clerkId:t.clerkId};a.previewVisible=!0,Object(r.d)("/haoban-app-daily-three-web/daily/get-daily-report-detail",s).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,chooseAll:t.selectRadio};Object(r.d)("/haoban-app-daily-three-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,s={taskId:t.taskId};Object(r.a)("/haoban-app-daily-three-web/daily/delete-task-items",s).then(function(t){var s=t.data;if(1==s.errorCode)return d.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(s)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=window.location.origin+"/haoban3web/pages/hbapp/daily/html/task/taskDailyReport.html?taskId="+t.taskId+"&gicStoreId="+this.conditionObj.storeId+"&gicClerkId="+t.clerkId+"&isShare=1";this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(r.a)("/haoban-app-daily-three-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);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())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a,qrcodeDialog:n.a,detailPreview:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-162",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-162 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operationStaffName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("WGjl")},"data-v-6e67de53",null);t.default=f.exports},V5I1:function(e,t){},WGjl:function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),i=a.n(s),o=a("fZjL"),n=a.n(o),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(i()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(i()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",s!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}))]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("V5I1")},"data-v-39038f78",null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([13],{JwJ7:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),i=a.n(s),o=a("LRn8"),n=a("fPyK"),l=a("swl+"),r=a("P9l9"),c=a("Ch4/"),d=a("3E4D"),m={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"所以完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所以逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewVisible:!1,previewData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(r.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getPreviewData:function(e,t){var a=this,s={storeId:a.conditionObj.storeId,taskId:t.taskId,clerkId:t.clerkId};a.previewVisible=!0,Object(r.d)("/haoban-app-daily-three-web/daily/get-daily-report-detail",s).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,chooseAll:t.selectRadio};Object(r.d)("/haoban-app-daily-three-web/daily/batch-delete-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,s={taskId:t.taskId};Object(r.a)("/haoban-app-daily-three-web/daily/delete-task-items",s).then(function(t){var s=t.data;if(1==s.errorCode)return d.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);c.a.errorMsg(s)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=window.location.origin+"/haoban3web/pages/hbapp/daily/html/task/taskDailyReport.html?taskId="+t.taskId+"&gicStoreId="+this.conditionObj.storeId+"&gicClerkId="+t.clerkId+"&isShare=1";this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",overdue:t.conditionObj.overdue||"",completed:t.conditionObj.completed||"",currentPage:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(r.a)("/haoban-app-daily-three-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);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())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","11"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a,qrcodeDialog:n.a,detailPreview:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-162",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-162 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operationStaffName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("WGjl")},"data-v-6e67de53",null);t.default=f.exports},WGjl:function(e,t){},"XCb+":function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),i=a.n(s),o=a("fZjL"),n=a.n(o),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var s=a%864e5,i=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(i/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(i()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(i()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",s!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}))]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("XCb+")},"data-v-26502be2",null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([11],{ByJz:function(e,t){},cckw:function(e,t){},mBs1:function(e,t){},xDJN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),i=a("exGp"),r=a.n(i),s=a("P9l9"),c=a("Ch4/"),l=a("PI0u"),d={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0}},methods:{handleClose:function(e){this.$emit("closeGetRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.d)("/haoban-app-customer-web/cardCoupon/find-receive-card-page",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!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())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"领取记录",visible:e.dialogVisible,width:"802px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1)]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("cckw")},"data-v-87f68b7e",null).exports,h={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0}},methods:{handleClose:function(e){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.d)("/haoban-app-customer-web/cardCoupon/find-send-card-page",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!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())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送记录",visible:e.dialogVisible,width:"802px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1)]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark",height:"450"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var b={components:{cardGetRecord:p,cardSendRecord:a("VU/8")(h,f,!1,function(e){a("mBs1")},"data-v-581665a2",null).exports},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0,getRecordShow:!1,sendRecordShow:!1,coupCardId:""}},filters:{percenteNum:function(e){return e>0?Number(100*e).toFixed(2)+"%":Number(e).toFixed(2)+"%"}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{showGetRecord:function(e,t){this.coupCardId=t.coupCardId,this.getRecordShow=!0},closeGetRecord:function(){this.getRecordShow=!1},showSendRecord:function(e,t){this.coupCardId=t.coupCardId,this.sendRecordShow=!0},closeSendRecord:function(){this.sendRecordShow=!1},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;return r()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n={gicEnterpriseId:(a=e).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(s.d)("/haoban-app-customer-web/cardCoupon/find-card-log-page",n).then(function(e){var t=e.data;if(1==t.errorCode)return a.tableData=t.result.list||[],void(a.total=t.result.pageInfo.total);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})});case 3:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[e._m(0),e._v(" "),a("div",{staticClass:"m-b-20"}),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送数量")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.issuingQuantity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.getedQuantity))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("percenteNum")(t.row.getedRate)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.usageQuantity))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("percenteNum")(t.row.verificationRate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.saleAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购发送卡券人数")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendMemberCount)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showSendRecord(t.$index,t.row,"1")}}},[e._v("发送记录")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showGetRecord(t.$index,t.row,"2")}}},[e._v("领取记录")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),e.getRecordShow?a("card-get-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeGetRecord:e.closeGetRecord}}):e._e(),e._v(" "),e.sendRecordShow?a("card-send-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeSendRecord:e.closeSendRecord}}):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"overstore-tip m-b-20",staticStyle:{width:"978px"}},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])])}]};var m=a("VU/8")(b,g,!1,function(e){a("ByJz")},"data-v-a05a9230",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([14],{ByJz:function(e,t){},EvT0:function(e,t){},aMpN:function(e,t){},xDJN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),i=a("exGp"),r=a.n(i),s=a("P9l9"),c=a("Ch4/"),l=a("PI0u"),d={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0}},methods:{handleClose:function(e){this.$emit("closeGetRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.d)("/haoban-app-customer-web/cardCoupon/find-receive-card-page",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!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())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"领取记录",visible:e.dialogVisible,width:"802px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1)]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"领取时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("aMpN")},"data-v-1fbf8b96",null).exports,h={props:{brandId:{type:String,default:function(){return""}},coupCardId:{type:String,default:function(){return""}}},data:function(){var e=this;return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},choiceDateCopy:[],pickerOptions:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}],onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},currentPage:1,pageSize:20,total:0}},methods:{handleClose:function(e){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a=[],n=[],o=[];t.conditionObj.storeGroup.forEach(function(e){1==e.type&&o.push(e.employeeClerkId),2==e.type&&a.push(e.groupId),3==e.type&&n.push(e.storeId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var i={coupCardId:t.coupCardId,searchType:t.conditionObj.searchType,search:t.conditionObj.searchInput||"",groupIds:a.join(",")||"",storeIds:n.join(",")||"",clerkIds:o.join(",")||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,gicEnterpriseId:t.brandId};Object(s.d)("/haoban-app-customer-web/cardCoupon/find-send-card-page",i).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],t.total=a.result.pageInfo.total,!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())},coupCardId:function(e,t){e&&this.getTableList()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"发送记录",visible:e.dialogVisible,width:"802px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:2==e.conditionObj.searchType?"请输入会员手机号/卡号 ":"请输入导购姓名/手机号/code",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("el-select",{staticClass:"w-103",attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.conditionObj.searchType,callback:function(t){e.$set(e.conditionObj,"searchType",t)},expression:"conditionObj.searchType"}},[a("el-option",{attrs:{label:"按导购",value:"1"}})],1)],1),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1)]),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark",height:"450"}},[a("el-table-column",{attrs:{label:"导购信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.clerkPhone||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCardNo||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"发送时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.sendTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.sendTime)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var b={components:{cardGetRecord:p,cardSendRecord:a("VU/8")(h,f,!1,function(e){a("EvT0")},"data-v-ea04b09e",null).exports},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0,getRecordShow:!1,sendRecordShow:!1,coupCardId:""}},filters:{percenteNum:function(e){return e>0?Number(100*e).toFixed(2)+"%":Number(e).toFixed(2)+"%"}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{showGetRecord:function(e,t){this.coupCardId=t.coupCardId,this.getRecordShow=!0},closeGetRecord:function(){this.getRecordShow=!1},showSendRecord:function(e,t){this.coupCardId=t.coupCardId,this.sendRecordShow=!0},closeSendRecord:function(){this.sendRecordShow=!1},toInput:Object(l.a)(function(e,t){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var e=this;return r()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n={gicEnterpriseId:(a=e).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(s.d)("/haoban-app-customer-web/cardCoupon/find-card-log-page",n).then(function(e){var t=e.data;if(1==t.errorCode)return a.tableData=t.result.list||[],void(a.total=t.result.pageInfo.total);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})});case 3:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","2"),this.brandId&&this.getTableList()}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[e._m(0),e._v(" "),a("div",{staticClass:"m-b-20"}),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"",width:"96"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"发送卡券数量,包含扫码发券数",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("发送数量")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.issuingQuantity)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.getedQuantity))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("percenteNum")(t.row.getedRate)))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.usageQuantity))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("percenteNum")(t.row.verificationRate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"销售额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.saleAmount))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"导购发送卡券的总人数统计,次日刷新",placement:"right"}},[a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购发送卡券人数")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sendMemberCount)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",width:"200",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showSendRecord(t.$index,t.row,"1")}}},[e._v("发送记录")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showGetRecord(t.$index,t.row,"2")}}},[e._v("领取记录")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),e.getRecordShow?a("card-get-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeGetRecord:e.closeGetRecord}}):e._e(),e._v(" "),e.sendRecordShow?a("card-send-record",{attrs:{brandId:e.brandId,coupCardId:e.coupCardId},on:{closeSendRecord:e.closeSendRecord}}):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"overstore-tip m-b-20",staticStyle:{width:"978px"}},[t("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[t("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),t("div",{staticClass:"el-alert__content"},[t("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("当前卡券记录中发送数量、领取数量、领取率、使用数量、核销率、销售额为gic总体卡券记录,包含好办使用记录。后续更新将统计好办渠道卡券记录")])])])])}]};var m=a("VU/8")(b,g,!1,function(e){a("ByJz")},"data-v-a05a9230",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([14],{V5I1:function(e,t){},XrDD:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("fZjL"),o=a.n(s),i=a("LRn8"),n=a("fPyK"),l=a("swl+"),r=a("P9l9"),c=a("Ch4/"),d=a("3E4D"),m={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:"",taskType:""},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成(已拨通)",value:"1"},{label:"已完成(放弃)",value:"2"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],typeOptions:[{label:"所有类型",value:""},{label:"ECM话务任务",value:"1"},{label:"不良评价",value:"0"},{label:"会话任务",value:"5"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,previewData:{},previewVisible:!1,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(r.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closePreview:function(){this.previewData={}},getPreviewData:function(e,t){var a=this,s={taskId:t.taskId};a.previewVisible=!0,Object(r.d)("/haoban-app-tel-task-three-web/task/app-task-detail",s).then(function(e){var t=e.data;if(1==t.errorCode)return a.previewData=t.result,void(a.previewVisible=!0);c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleCommand:function(e){this.selectRadio=e},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!o()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return d.a.showmsg("删除成功","success"),void t.getTableList();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,s={taskId:t.taskId,enterpriseId:a.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/del-one",s).then(function(e){var t=e.data;if(1==t.errorCode)return d.a.showmsg("删除成功","success"),void a.getTableList();c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"task"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={ecmId:t.$route.query.ecmId||"",taskType:t.conditionObj.taskType,storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.taskUrl&&!e.taskUrl.length||(e.taskUrl=[])}),t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);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())}},mounted:function(){this.$emit("showTab","11"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:i.a,qrcodeDialog:n.a,detailPreview:l.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-135",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-135 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e.$route.query.ecmId?e._e():a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.taskType,callback:function(t){e.$set(e.conditionObj,"taskType",t)},expression:"conditionObj.taskType"}},e._l(e.typeOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象","show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"任务类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s("0"==t.row.taskType?"不良评价":"5"==t.row.taskType?"会话任务":"话务任务"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":"",width:"107"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 完成情况包含3种"),a("br"),e._v("\n 1.完成拨打任务;"),a("br"),e._v("\n 2.完成任务(无需拨打);"),a("br"),e._v("\n 3.完成任务(放弃拨打);"),a("br"),e._v("\n 4.未完成任务\n ")]),e._v(" "),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("完成情况")])])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isCompleted)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operationStaffName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.reason?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:t.row.reason}},[a("i",{staticClass:"el-icon-chat-dot-square cursor-pointer color-909399",staticStyle:{"font-size":"20px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"图片"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.taskUrls,function(t,s){return a("el-popover",{key:s,attrs:{"popper-class":"notice-img-popover",placement:"right",width:"400",trigger:"hover"}},[a("div",{staticClass:"img-preview flex"},[a("img",{staticStyle:{"max-width":"400px"},attrs:{src:t,alt:""}})]),e._v(" "),a("img",{staticClass:"task-imgs",attrs:{slot:"reference",src:t,alt:""},slot:"reference"})])})}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.getPreviewData(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),a("detail-preview",{ref:"detailPreview",attrs:{previewData:e.previewData},on:{closePreview:e.closePreview},model:{value:e.previewVisible,callback:function(t){e.previewVisible=t},expression:"previewVisible"}})],1)},staticRenderFns:[]};var f=a("VU/8")(m,u,!1,function(e){a("f6A+")},"data-v-1a4d61c0",null);t.default=f.exports},"f6A+":function(e,t){},"swl+":function(e,t,a){"use strict";var s=a("mvHQ"),o=a.n(s),i=a("fZjL"),n=a.n(i),l={name:"detail-preview",props:{value:{type:Boolean,default:function(){return!1}},previewData:{type:Object,default:function(){return{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}}}}},directives:{htmlContent:{bind:function(e,t){e.innerHTML=t.value},update:function(e,t){e.innerHTML=t.value}}},data:function(){return{noticeData:{title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},time:null}},methods:{timeStampSpaces:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var s=a%864e5,o=s%36e5;return Math.floor(a/864e5)+"天"+Math.floor(s/36e5)+"小时"+Math.floor(o/6e4)+"分"}},closeDialog:function(){this.$emit("input",!1),this.$emit("closePreview"),this.noticeData={title:"",taskDescription:"",lastTime:"",taskStatus:1,executiveClerkId:"",bindFlag:0,taskRecordList:[],taskType:1,memberInfo:{cardNum:"",imgUrl:"",memberName:"",memberGender:"",memberAge:"",birthday:"",clerkName:"",costFee:"",memberGradeName:"",costTimes:"",lastCostFee:"",phoneNumber:"",openCardTime:"",memberType:"0",birthType:"",accumulatPoints:""}},clearInterval(this.time)}},watch:{previewData:function(e,t){var a=this;n()(e).length&&(a.noticeData=JSON.parse(o()(e)),a.time=setInterval(function(){a.timeStampSpaces(a.previewData.lastTime)},6e4))}},mounted:function(){var e=this;n()(e.previewData).length&&(e.noticeData=JSON.parse(o()(e.previewData)),e.time=setInterval(function(){e.timeStampSpaces(e.previewData.lastTime)},6e4))},beforeDestroy:function(){clearInterval(this.time),this.time=null}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"qr-dialog-content",staticStyle:{opacity:"1"}},[a("div",{staticClass:"qr-mask",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}}),e._v(" "),a("div",{staticClass:"qr-dialog border-box"},[a("div",{staticClass:"qr-dialog-body border-box"},[a("div",{staticClass:"detail-content border-box"},[a("div",{staticClass:"detail-content-top border-box"},[a("div",{staticClass:"task-title font-14 color-303133 font-w-500"},[e._v(e._s(e.noticeData.title))]),e._v(" "),a("div",{staticClass:"task-des font-12 color-303133 font-w-400"},[e._v(e._s(e.noticeData.taskDescription))]),e._v(" "),a("div",{staticClass:"task-over font-10 color-fd6b6d font-w-400"},[1==e.noticeData.taskStatus?a("span",[e._v("逾期剩余时长:"+e._s(e.timeStampSpaces(e.noticeData.lastTime)))]):e._e(),e._v(" "),2==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e(),e._v(" "),3==e.noticeData.taskStatus?a("span",[e._v("已放弃")]):e._e(),e._v(" "),4==e.noticeData.taskStatus?a("span",[e._v("已逾期")]):e._e(),e._v(" "),5==e.noticeData.taskStatus?a("span",[e._v("已完成")]):e._e()]),e._v(" "),a("div",{staticClass:"task-people"},e._l(e.noticeData.taskRecordList,function(t,s){return a("div",{key:s+"record",staticClass:"task-item-cell"},[a("div",{staticClass:"task-item-content"},[a("span",{staticClass:"iconfont icondingwei font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-606266 opt-content"},[e._v(e._s(t.optContent))])]),e._v(" "),a("div",{class:["task-item-date",s!=e.noticeData.taskRecordList.length-1?"item-border":""]},[a("span",{staticClass:"p-l-14 font-10 color-909399"},[e._v(e._s(t.optTime))])])])}))]),e._v(" "),a("div",{staticClass:"detail-content-bottom border-box m-t-10"},[a("div",{staticClass:"user-info flex "},[a("div",{staticClass:"user-photo"},[a("img",{attrs:{src:e.noticeData.memberInfo.imgUrl,alt:""}})]),e._v(" "),a("div",{staticClass:"user-name-body"},[a("div",{staticClass:"user-name"},[a("span",{staticClass:"font-12 color-30313 font-w-500"},[e._v(e._s(e.noticeData.memberInfo.memberName))]),a("span",{class:["p-l-6 font-12 iconfont",0==e.noticeData.memberInfo.memberGender?"":1==e.noticeData.memberInfo.memberGender?"iconnan color-4b69e5":"color-ff8ea0 iconxingbienv"]})]),e._v(" "),a("div",{staticClass:"user-age font-10 color-7f818a"},[a("span",[e._v(e._s(e.noticeData.memberInfo.memberAge)+"岁")]),a("span",{staticClass:"dot"}),a("span",[e._v("生日 "+e._s(0==e.noticeData.memberInfo.birthType?"农历":"阳历")+e._s(e.noticeData.memberInfo.birthday))])])])]),e._v(" "),a("div",{staticClass:"user-info-body"},[5!=e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.memberGradeName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("积 分:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.accumulatPoints))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费总额:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costFee))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("消费次数:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.costTimes))])])]):e._e(),e._v(" "),5==e.noticeData.taskType?a("ul",{staticClass:"flex font-10 flex-wrap"},[a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("微信昵称:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.nickName||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("手机号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.phoneNumber||"--"))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员卡号:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(e.noticeData.memberInfo.cardNum))])]),e._v(" "),a("li",{staticClass:"flex-1 line-h-16 m-b-10"},[a("span",{staticClass:"font-10 color-303133"},[e._v("会员身份:")]),a("span",{staticClass:"font-10 color-7f818a"},[e._v(e._s(1==e.noticeData.memberInfo.memberType?"pos会员":"微信会员"))])])]):e._e()]),e._v(" "),a("div",{staticClass:"user-clerk"},[a("span",{staticClass:"iconfont iconziyuan1 font-10 color-4b69e5"}),a("span",{staticClass:"font-10 color-4b69e5 clerk-name"},[e._v(e._s(e.noticeData.memberInfo.clerkName))])])])]),e._v(" "),a("div",{staticClass:"qr-dialog__hd"},[a("i",{staticClass:"el-icon-plus",on:{click:function(t){return t.stopPropagation(),e.closeDialog(t)}}})])])])])},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("V5I1")},"data-v-39038f78",null);t.a=c.exports}});
\ No newline at end of file
webpackJsonp([18],{H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),i=a("P9l9"),o=a("Ch4/"),l=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(i.b)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(!e.data)return o.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(l.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(i.a)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(i.a)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("R+ak")},"data-v-71d19072",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","12"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId,activeGroupId:this.activeGroupId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("cEzB")},"data-v-7bd3a0f2",null);t.default=h.exports},"R+ak":function(e,t){},cEzB:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),i=a("P9l9"),o=a("Ch4/"),l=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,activeGroup:this.activeGroupId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(i.b)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(!e.data)return o.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(l.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(i.a)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(i.a)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("R+ak")},"data-v-71d19072",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){this.$emit("showTab","12"),document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId,activeGroupId:this.activeGroupId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("cEzB")},"data-v-7bd3a0f2",null);t.default=h.exports},"R+ak":function(e,t){},cEzB:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("RSaT")},"data-v-77475b98",null);s.default=c.exports},RSaT:function(t,s){}});
\ No newline at end of file
webpackJsonp([18],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"登录遇到错误啦!请确认您是否已是好办管理员,如不是,请联系管理员。"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("WTCv")},"data-v-5c300750",null);s.default=c.exports},WTCv:function(t,s){}});
\ No newline at end of file
webpackJsonp([19],{"7iKJ":function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("P9l9"),i=n("Ch4/"),s=n("PI0u"),l={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,n={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(r.d)("/haoban-app-customer-web/inner/find-card-total-log-page",n).then(function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.result||[],e.total=n.result.totalCount,!1;i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[n("div",{staticClass:"table-condition-left"},[n("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return n=e,t.toInput(n,t.conditionObj.searchInput);var n}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),n("div",[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[n("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.usageQuantity||"0"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("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)])},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(t){n("7iKJ")},"data-v-4d360fd6",null).exports,d=n("/dO2"),p=n("3E4D"),f={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;d.default.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex;if(n==a)return!1;var o=e.tableData.splice(a,1)[0];e.tableData.splice(n,0,o),console.log(e.tableData,n,a),e.postSort()}})},postSort:function(){var t=this,e={json:o()(t.tableData)};Object(r.d)("/haoban-app-customer-web/inner/change-sort",e).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void window.location.reload();i.a.errorMsg(e)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toDel:function(t,e){var n=this;n.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,n={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(r.d)("/haoban-app-customer-web/inner/delete-policy",n).then(function(t){var n=t.data;if(1==n.errorCode)return p.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?policyId="+e.policyId)},toSwitch:function(t,e){var n=this,a={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(r.d)("/haoban-app-customer-web/inner/on-off-line",a).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void n.getTableList();i.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(r.d)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var n=e.data;1!=n.errorCode?i.a.errorMsg(n):t.tableData=JSON.parse(o()(n.result))||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","2"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},this.rowDrop(),this.getTableList()}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"common-right-wrap"},[n("div",{staticClass:"p-20"},[n("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),n("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),n("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.policyName)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?n("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var b=n("VU/8")(f,h,!1,function(t){n("yvqA")},"data-v-818b3a5a",null);e.default=b.exports},yvqA:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{"7iKJ":function(t,e){},J51b:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=n("P9l9"),i=n("Ch4/"),s=n("PI0u"),l={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,n={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(r.d)("/haoban-app-customer-web/inner/find-card-total-log-page",n).then(function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.result||[],e.total=n.result.totalCount,!1;i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[n("div",{staticClass:"table-condition-left"},[n("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return n=e,t.toInput(n,t.conditionObj.searchInput);var n}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),n("div",[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[n("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.usageQuantity||"0"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("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)])},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(t){n("7iKJ")},"data-v-4d360fd6",null).exports,d=n("/dO2"),p=n("3E4D"),f={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;d.default.create(t,{onEnd:function(t){var n=t.newIndex,a=t.oldIndex;if(n==a)return!1;var o=e.tableData.splice(a,1)[0];e.tableData.splice(n,0,o),console.log(e.tableData,n,a),e.postSort()}})},postSort:function(){var t=this,e={json:o()(t.tableData)};Object(r.d)("/haoban-app-customer-web/inner/change-sort",e).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void window.location.reload();i.a.errorMsg(e)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toDel:function(t,e){var n=this;n.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,n={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(r.d)("/haoban-app-customer-web/inner/delete-policy",n).then(function(t){var n=t.data;if(1==n.errorCode)return p.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);i.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?policyId="+e.policyId)},toSwitch:function(t,e){var n=this,a={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(r.d)("/haoban-app-customer-web/inner/on-off-line",a).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void n.getTableList();i.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(r.d)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var n=e.data;1!=n.errorCode?i.a.errorMsg(n):t.tableData=JSON.parse(o()(n.result))||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","2"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},this.rowDrop(),this.getTableList()}},h={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"common-right-wrap"},[n("div",{staticClass:"p-20"},[n("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),n("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),n("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.policyName)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?n("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var b=n("VU/8")(f,h,!1,function(t){n("J51b")},"data-v-4d6c90db",null);e.default=b.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([32],{"4QyY":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"云日报",path:""}],tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/dailyDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("NUIx")},"data-v-797a9338",null);a.default=h.exports},NUIx:function(t,a){}});
\ No newline at end of file
webpackJsonp([26],{"4QyY":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"云日报",path:""}],tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/dailyDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("RPri")},"data-v-b9412f64",null);a.default=h.exports},RPri:function(t,a){}});
\ No newline at end of file
webpackJsonp([71],{FmZU:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),s=e("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",appName:"话务任务",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"话务任务",path:""}],tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"iconhuawushuju",onlyIconActive:!1,children:[{tabId:"11",tabName:"门店视图",icon:""},{tabId:"12",tabName:"话务任务视图",icon:""}]},{tabId:"3",tabName:"会话任务列表",icon:"iconhuihuajinglingicon-"},{tabId:"2",tabName:"任务设置",icon:"iconbuliangpingjiashezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"话务任务设置",icon:""},{tabId:"22",tabName:"会话任务设置",icon:""},{tabId:"23",tabName:"不良评价回访设置",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(s.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("taskRecord");break;case"12":this.changeRoute("taskView");break;case"2":case"21":this.changeRoute("trafficTaskSet");break;case"22":this.changeRoute("taskSessionSet");break;case"23":this.changeRoute("badEvaluateSet");break;case"3":this.changeRoute("taskList")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/taskViewDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"话务任务视图详情",path:""}]:"/newSession"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"会话任务列表",path:"/taskList"},{name:this.$route.query.repairId?"编辑会话任务":"新建会话任务",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var d=e("VU/8")(r,h,!1,function(t){e("c1O7")},"data-v-09cbbd1e",null);a.default=d.exports},c1O7:function(t,a){}});
\ No newline at end of file
webpackJsonp([27],{FmZU:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),s=e("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",appName:"话务任务",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"话务任务",path:""}],tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"iconhuawushuju",onlyIconActive:!1,children:[{tabId:"11",tabName:"门店视图",icon:""},{tabId:"12",tabName:"话务任务视图",icon:""}]},{tabId:"3",tabName:"会话任务列表",icon:"iconhuihuajinglingicon-"},{tabId:"2",tabName:"任务设置",icon:"iconbuliangpingjiashezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"话务任务设置",icon:""},{tabId:"22",tabName:"会话任务设置",icon:""},{tabId:"23",tabName:"不良评价回访设置",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(s.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("taskRecord");break;case"12":this.changeRoute("taskView");break;case"2":case"21":this.changeRoute("trafficTaskSet");break;case"22":this.changeRoute("taskSessionSet");break;case"23":this.changeRoute("badEvaluateSet");break;case"3":this.changeRoute("taskList")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/taskViewDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"话务任务视图详情",path:""}]:"/newSession"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"会话任务列表",path:"/taskList"},{name:this.$route.query.repairId?"编辑会话任务":"新建会话任务",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var d=e("VU/8")(r,h,!1,function(t){e("TcIP")},"data-v-b096644a",null);a.default=d.exports},TcIP:function(t,a){}});
\ No newline at end of file
webpackJsonp([27],{OUXi:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),l=s("3E4D"),n=s("P9l9"),o={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,options:[{label:"普通电话",value:1},{label:"双向透传",value:2}],setObj:{taskCallType:1,taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:"",relaxTaskJudge:!1}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={taskCallType:t.setObj.taskCallType,enterpriseId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.d)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:1};Object(n.d)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","21"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("双向透传,使用GIC双向呼叫及透传功能。计费由GIC计费中心计费,可记录通话记录及监测是否拨通。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("普通呼叫,使用导购自己手机呼叫。计费方式同正常手机运营商呼叫计费。无法记录通话记录及监测是否拨通")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item font-0"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务下发:")]),t._v(" "),s("div",{staticClass:"inline-block vertical-top"},[s("table",{staticClass:"font-14"},[s("tbody",[s("tr",{staticClass:"el-table__row"},[t._m(0),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1)])]),t._v(" "),s("tr",{staticClass:"el-table__row"},[t._m(1),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1)])])])])])]),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条话务任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("POS会员")])])}]};var c=s("VU/8")(o,r,!1,function(t){s("oHqD")},"data-v-e2961352",null);e.default=c.exports},oHqD:function(t,e){}});
\ No newline at end of file
webpackJsonp([28],{"6kD0":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("Xxa5"),n=a.n(o),s=a("exGp"),r=a.n(s),i=a("//Fk"),c=a.n(i),l=a("mvHQ"),p=a.n(l),d=a("c9no"),u=a("NKg7"),g=a("P9l9"),f=a("Ch4/"),h=a("3E4D"),v={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var o=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){var n=[t,e=parseInt(e)>0?e-1:11,a],s=3!==n.length?new Date:new Date(n[0],n[1],n[2]),r=void 0,i=void 0,c=void 0,l=void 0,p=!1,d=s.getFullYear();for(r=365*(d-1921)+Math.floor((d-1921)/4)+[0,31,59,90,120,151,181,212,243,273,304,334][s.getMonth()]+s.getDate()-38,d%4==0&&s.getMonth()>1&&r++,i=0;;i++){for(c=l=o[i]<4095?11:12;c>=0;c--){if(r<=this.getBit(o[i],c)){p=!0;break}r-=this.getBit(o[i],c)}if(p)break}var u,g=void 0;g=l-c+1,u=r,12===l&&(g===Math.floor(o[i]/65536)+1&&(g=1-g),g>Math.floor(o[i]/65536)+1&&g--);var f="一二三四五六七八九十".charAt(u-1);return u%10==0&&10!==u||(f="一二三四五六七八九十".charAt((u-1)%10)),console.log(),1===u?"正二三四五六七八九十冬腊".charAt(g-1)+"月初一":"正二三四五六七八九十冬腊".charAt(g-1)+"月"+(u<11?"初":u<20?"十":u<30?"廿":"三十")+f}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",type:t};Object(g.a)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(p()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(p()(a.result.close))||[]);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(g.a)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?f.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toLogin:function(){var t=this;return new c.a(function(e,a){Object(g.a)("/haoban-manage3-web/get-login-info",{}).then(function(t){var a=t.data;if(1==a.errorCode)return localStorage.setItem("userInfos",p()(a.result)),void e(a.result.wxEnterpriseId);f.a.errorMsg(a),e({wxEnterpriseId:""})}).catch(function(a){e({wxEnterpriseId:""}),t.$message.error({duration:1e3,message:a.message})})})},getTipData:function(){var t=this;Object(g.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(g.a)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;f.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).getBindData(),e.next=4,a.toLogin();case 4:a.wxEnterpriseId=e.sent,a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 9:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:u.a,setTip:d.a}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,o){return a("li",{key:o+"app",staticClass:"border-box",on:{click:function(a){t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}))]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,o){return a("li",{key:o+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}))])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"GIC已同步上线门店总数,实时获取",placement:"top-start"}},[a("span",{staticClass:"w-86 font-14 color-909399 text-left",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("门店总数")])])],1),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeTotal))])])])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,o){return a("li",{key:o+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var w=a("VU/8")(v,m,!1,function(t){a("6kD0")},"data-v-a0282e66",null);e.default=w.exports}});
\ No newline at end of file
webpackJsonp([44],{"+lem":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("NKg7"),i=a("Qie6"),c={name:"reviewed",components:{vueOfficeHeader:n.a,commonDetailLeft:i.a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("unreview");break;case"2":this.changeRoute("reviewed");break;case"3":this.changeRoute("reviewSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"review-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"content-body-inner flex border-box"},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])],1)},staticRenderFns:[]};var s=a("VU/8")(c,o,!1,function(t){a("5/XE")},null,null);e.default=s.exports},"5/XE":function(t,e){}});
\ No newline at end of file
webpackJsonp([29],{"+lem":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("NKg7"),i=a("Qie6"),c={name:"reviewed",components:{vueOfficeHeader:n.a,commonDetailLeft:i.a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("unreview");break;case"2":this.changeRoute("reviewed");break;case"3":this.changeRoute("reviewSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})},toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"review-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"content-body-inner flex border-box"},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])],1)},staticRenderFns:[]};var s=a("VU/8")(c,o,!1,function(t){a("DPH/")},null,null);e.default=s.exports},"DPH/":function(t,e){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([30],{nV1L:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("bzW+"),i=a("Qie6"),c=a("Z8ln"),o=a("Ch4/"),r=a("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:""}],tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(t){a("ogJS")},"data-v-8cc77f48",null);e.default=u.exports},ogJS:function(t,e){}});
\ No newline at end of file
webpackJsonp([29],{H3Rw:function(e,t){},ak3k:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("2eFk"),n=a("Ke24"),i=a("fPyK"),l=a("P9l9"),r=a("Ch4/"),s=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(e){this.$router.push(e)},setSelectTab:function(e){this.activeTab=e.tabId},handlePreview:function(e,t){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+t.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(e,t){this.changeRouter("/customReportSet?templateId="+t.dailyReportTemplateId+"&type=copy")},handleEdit:function(e,t){this.changeRouter("/customReportSet?&templateId="+t.dailyReportTemplateId+"&type=edit")},handleDelete:function(e,t){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(e,t)}).catch(function(){})},deleteTemplate:function(e,t){var a=this;Object(l.d)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:t.dailyReportTemplateId}).then(function(t){var o=t.data;if(1==o.errorCode)return s.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);r.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(l.d)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:e.brandId}).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=[],void(a.result&&a.result.length&&(e.tableData=a.result));r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","32"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:o.a,commonDetailTop:n.a,qrcodeDialog:i.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"}),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toCustomSet("")}}},[e._v("新建模板")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.title))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.description))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.storeType?a("span",[e._v("自营门店")]):e._e(),e._v(" "),1==t.row.storeType?a("span",[e._v("联营门店")]):e._e(),e._v(" "),2==t.row.storeType?a("span",[e._v("代理门店")]):e._e(),e._v(" "),3==t.row.storeType?a("span",[e._v("代销门店")]):e._e(),e._v(" "),4==t.row.storeType?a("span",[e._v("托管门店")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleCopy(t.$index,t.row)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("H3Rw")},"data-v-866cc2c0",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([31],{H3Rw:function(e,t){},ak3k:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("2eFk"),n=a("Ke24"),i=a("fPyK"),l=a("P9l9"),r=a("Ch4/"),s=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(e){this.$router.push(e)},setSelectTab:function(e){this.activeTab=e.tabId},handlePreview:function(e,t){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+t.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(e,t){this.changeRouter("/customReportSet?templateId="+t.dailyReportTemplateId+"&type=copy")},handleEdit:function(e,t){this.changeRouter("/customReportSet?&templateId="+t.dailyReportTemplateId+"&type=edit")},handleDelete:function(e,t){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(e,t)}).catch(function(){})},deleteTemplate:function(e,t){var a=this;Object(l.d)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:t.dailyReportTemplateId}).then(function(t){var o=t.data;if(1==o.errorCode)return s.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);r.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this;Object(l.d)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:e.brandId}).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=[],void(a.result&&a.result.length&&(e.tableData=a.result));r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","32"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:o.a,commonDetailTop:n.a,qrcodeDialog:i.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[a("div",{staticClass:"custom-set-title flex flex-pack-center"}),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.toCustomSet("")}}},[e._v("新建模板")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.title))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.description))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.storeType?a("span",[e._v("自营门店")]):e._e(),e._v(" "),1==t.row.storeType?a("span",[e._v("联营门店")]):e._e(),e._v(" "),2==t.row.storeType?a("span",[e._v("代理门店")]):e._e(),e._v(" "),3==t.row.storeType?a("span",[e._v("代销门店")]):e._e(),e._v(" "),4==t.row.storeType?a("span",[e._v("托管门店")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleCopy(t.$index,t.row)}}},[e._v("复制")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("H3Rw")},"data-v-866cc2c0",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([30],{EErG:function(e,a){},tF0P:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t("mvHQ"),r=t.n(o),i=t("l46T"),s=t("Kkt8"),n=t("P9l9"),l=t("3E4D"),m=t("Ch4/"),p=t("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:s.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",commitName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{templateId:"",templateName:"",cardType:"0",cardApplicationChannel:["offlineStore"],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:""},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],cardApplicationChannel:[{type:"array",required:!0,message:"请至少选择一个卡券适用渠道",trigger:"change"}],cardDenomination:[{required:!0,message:"请输入减免金额",trigger:"blur"}],costValue:[{required:!0,message:"请输入成本费用",trigger:"blur"}],cardExplain:[{required:!0,message:"请输入适用门店说明",trigger:"blur"}],applicationStoreType:[{required:!0,message:"请选择适用门店",trigger:"change"}],useDescript:[{required:!0,message:"请输入使用说明",trigger:"blur"}],gicEnterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},cardSelectShow:!1,brandListData:[],chanelList:[]}},methods:{changeEnterprise:function(){this.formData.cardApplicationChannel=[],this.getChanel()},getChanel:function(){var e=this,a={gicEnterpriseId:e.formData.gicEnterpriseId};Object(n.a)("/haoban-app-customer-web/inner/get-channel-type",a).then(function(a){var t=a.data;return 1==t.errorCode&&(e.chanelList=t.result||[],t.result.length&&!e.$route.query.templateId&&(e.formData.cardApplicationChannel=[t.result[0].value])),!1}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeTop:function(e){0==e&&(this.formData.limitTop=0)},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},submitForm:Object(p.a)(function(e,a){var t=this;return t.formData.fitGoodCheck&&!t.formData.fitGoodDes&&t.formData.noFitGoodDes?(t.$message.error({duration:1e3,message:"适用商品至少填写一项"}),!1):t.formData.minCostCheck&&!t.formData.minCost?(t.$message.error({duration:1e3,message:"请输入最低消费"}),!1):1!=t.formData.limitTopType||t.formData.limitTop?1!=t.formData.minGoodsType||t.formData.minApplicableGoods?1!=t.formData.maxGoodsType||t.formData.maxApplicableGoods?2!=t.formData.cardLimitType||t.formData.cardLimit?void t.$refs[e].validate(function(e){e&&t.postSaveCard(a)}):(t.$message.error({duration:1e3,message:"请输入领券限制"}),!1):(t.$message.error({duration:1e3,message:"请输入最高适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入最低适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入封顶金额"}),!1)},1e3),postSaveCard:function(e){var a=this,t={sale_limit:{fee:0},goods:{ok:a.formData.fitGoodDes,no:a.formData.noFitGoodDes},only:a.formData.shareCheck?1:0,discount_amount_upper_limit:1==a.formData.cardType&&1==a.formData.limitTopType?a.formData.limitTop:0,goods_discounts_number_lower_limit:1==a.formData.minGoodsType?a.formData.minApplicableGoods:0,goods_discounts_number_upper_limit:1==a.formData.maxGoodsType?a.formData.maxApplicableGoods:0};a.formData.minCostCheck&&(t.sale_limit={fee:a.formData.minCost});var o={templateId:a.formData.templateId,templateName:a.formData.templateName,cardType:a.formData.cardType,cardApplicationChannel:a.formData.cardApplicationChannel.join(","),erpDemoCode:a.formData.erpDemoCode,cardColor:a.formData.cardColor,cardDenomination:a.formData.cardDenomination,minGoodsType:a.formData.minGoodsType,minApplicableGoods:a.formData.minApplicableGoods,maxGoodsType:a.formData.maxGoodsType,maxApplicableGoods:a.formData.maxApplicableGoods,limitTopType:a.formData.limitTopType,limitTop:a.formData.limitTop,useCondition:r()(t),cardLimitType:a.formData.cardLimitType,cardLimit:a.formData.cardLimit,costValue:a.formData.costValue,useCustomCode:a.formData.useCustomCode,cardExplain:a.formData.cardExplain,applicationStoreType:a.formData.applicationStoreType,useDescript:a.formData.useDescript,gicEnterpriseId:a.formData.gicEnterpriseId,commitName:a.commitName,wxEnterpriseId:a.wxEnterpriseId};Object(n.d)((a.$route.query.templateId,"/haoban-app-customer-web/inner/save-template"),o).then(function(t){var o=t.data;1==o.errorCode&&(l.a.showmsg(a.$route.query.templateId?"编辑卡券模板成功":"新建卡券模板成功","success"),e?(a.formData={templateId:"",templateName:"",cardType:"0",cardApplicationChannel:[],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:a.brandListData[0].enterpriseId},a.getChanel()):a.$router.push("/cardTemplate")),m.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/cardTemplate")}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,a={templateId:e.$route.query.templateId};Object(n.a)("/haoban-app-customer-web/inner/find-template",a).then(function(a){var t=a.data;if(1==t.errorCode){var o=JSON.parse(t.result.useCondition);return e.formData={templateId:t.result.templateId,templateName:t.result.templateName,cardType:String(t.result.cardType),cardApplicationChannel:t.result.cardApplicationChannel.split(",")||[],erpDemoCode:t.result.erpDemoCode,cardColor:t.result.cardColor,cardDenomination:t.result.cardDenomination,limitTopType:String(t.result.limitTopType),limitTop:t.result.limitTop,minGoodsType:String(t.result.minGoodsType),minApplicableGoods:t.result.minApplicableGoods,maxGoodsType:String(t.result.maxGoodsType),maxApplicableGoods:t.result.maxApplicableGoods,minCostCheck:!!o.sale_limit.fee,minCost:o.sale_limit.fee?o.sale_limit.fee:"1",shareCheck:!!o.only,fitGoodCheck:!(!o.goods.ok&&!o.goods.no),fitGoodDes:o.goods.ok,noFitGoodDes:o.goods.no,cardLimitType:String(t.result.cardLimitType),cardLimit:t.result.cardLimit,costValue:t.result.costValue,useCustomCode:String(t.result.useCustomCode),cardExplain:t.result.cardExplain,applicationStoreType:String(t.result.applicationStoreType),useDescript:t.result.useDescript,gicEnterpriseId:t.result.gicEnterpriseId},e.getChanel(),!1}m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},getBrandData:function(){var e=this;Object(n.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(a){var t=a.data;if(1==t.errorCode)return e.brandListData=t.result||[],void(t.result.length&&!e.$route.query.templateId&&(e.formData.gicEnterpriseId=t.result[0].enterpriseId,e.getChanel()));m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(e,a){e&&this.$route.query.templateId&&(this.activeBrand=e)},activeGroupId:function(e,a){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","1"),e.getBrandData(),e.$route.query.templateId&&e.$nextTick(function(){e.getCardData()})}},d={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"common-right-wrap"},[t("div",{staticClass:"new-card-body border-box"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"142px"}},[t("el-form-item",{attrs:{label:"卡券模板名称",prop:"templateName"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.templateName,getByType:"word",holder:"请输入卡券模板名称",maxLength:6},on:{"update:inputValue":function(a){e.$set(e.formData,"templateName",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券类型",prop:"cardType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("抵金券")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("折扣券")])],1),e._v(" "),t("el-form-item",{attrs:{label:"选择商户",prop:"gicEnterpriseId"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeEnterprise},model:{value:e.formData.gicEnterpriseId,callback:function(a){e.$set(e.formData,"gicEnterpriseId",a)},expression:"formData.gicEnterpriseId"}},e._l(e.brandListData,function(e){return t("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}))],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券适用渠道",prop:"cardApplicationChannel"}},[t("el-checkbox-group",{model:{value:e.formData.cardApplicationChannel,callback:function(a){e.$set(e.formData,"cardApplicationChannel",a)},expression:"formData.cardApplicationChannel"}},e._l(e.chanelList,function(a,o){return t("el-checkbox",{key:o+"chanel",attrs:{label:a.value}},[e._v(e._s(a.name))])}))],1),e._v(" "),t("el-form-item",{attrs:{label:"demo券号",prop:"erpDemoCode"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.erpDemoCode,getByType:"word",holder:"请输入demo券号",maxLength:200},on:{"update:inputValue":function(a){e.$set(e.formData,"erpDemoCode",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券颜色",prop:"cardColor"}},[t("div",{staticClass:"card-color flex flex-space-between"},[t("span",[e._v(e._s(e.formData.cardColor))]),e._v(" "),t("el-color-picker",{model:{value:e.formData.cardColor,callback:function(a){e.$set(e.formData,"cardColor",a)},expression:"formData.cardColor"}})],1)]),e._v(" "),0==e.formData.cardType?t("el-form-item",{attrs:{label:"减免金额",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("输入大于0的整数")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"折扣额度",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:1,min:1,max:9.9,step:.1},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("折")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写1-9.9之间的数字")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"优惠金额封顶",prop:""}},[t("el-radio",{attrs:{label:"0"},on:{change:e.changeTop},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("不封顶")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("限制封顶")]),1==e.formData.limitTopType?t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.limitTop,callback:function(a){e.$set(e.formData,"limitTop",a)},expression:"formData.limitTop"}}):e._e(),e._v(" "),1==e.formData.limitTopType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]):e._e()],1):e._e(),e._v(" "),t("el-form-item",{attrs:{label:"最低适用商品件数",prop:"minGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("限制")]),1==e.formData.minGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minApplicableGoods,callback:function(a){e.$set(e.formData,"minApplicableGoods",a)},expression:"formData.minApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.minGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"最高适用商品件数",prop:"maxGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("限制")]),1==e.formData.maxGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.maxApplicableGoods,callback:function(a){e.$set(e.formData,"maxApplicableGoods",a)},expression:"formData.maxApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.maxGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"适用条件",prop:"minCostCheck"}},[t("div",[t("el-checkbox",{model:{value:e.formData.minCostCheck,callback:function(a){e.$set(e.formData,"minCostCheck",a)},expression:"formData.minCostCheck"}},[e._v("最低消费")]),t("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minCost,callback:function(a){e.$set(e.formData,"minCost",a)},expression:"formData.minCost"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元可用")])],1),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.fitGoodCheck,callback:function(a){e.$set(e.formData,"fitGoodCheck",a)},expression:"formData.fitGoodCheck"}},[e._v("适用商品")]),t("span",{staticClass:"font-14 color-909399"},[e._v("(至少填写一项)")])],1),e._v(" "),e.formData.fitGoodCheck?t("div",{staticClass:"fit-good border-box m-b-20"},[t("div",[t("div",{staticClass:"m-b-20 flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.fitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){e.$set(e.formData,"fitGoodDes",a)}}})],1),e._v(" "),t("div",{staticClass:"flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("不适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.noFitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){e.$set(e.formData,"noFitGoodDes",a)}}})],1)])]):e._e(),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.shareCheck,callback:function(a){e.$set(e.formData,"shareCheck",a)},expression:"formData.shareCheck"}},[e._v("不与其他优惠共享")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"领券限制",prop:"cardLimitType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("1张/人")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("100张/人")]),e._v(" "),t("el-radio",{attrs:{label:"2"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("自定义")]),2==e.formData.cardLimitType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardLimit,callback:function(a){e.$set(e.formData,"cardLimit",a)},expression:"formData.cardLimit"}}):e._e(),e._v(" "),2==e.formData.cardLimitType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("张/人")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"成本费用",prop:"costValue"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.costValue,callback:function(a){e.$set(e.formData,"costValue",a)},expression:"formData.costValue"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写大于0的数字(限制两位小数)")])],1),e._v(" "),t("el-form-item",{attrs:{label:"code类型",prop:"useCustomCode"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.useCustomCode,callback:function(a){e.$set(e.formData,"useCustomCode",a)},expression:"formData.useCustomCode"}},[e._v("随机生成")])],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店说明",prop:"cardExplain"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.cardExplain,holder:"请输入适用门店说明",getByType:"word",maxLength:50},on:{"update:inputValue":function(a){e.$set(e.formData,"cardExplain",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店",prop:"applicationStoreType"}},[t("el-radio",{attrs:{label:"1"},model:{value:e.formData.applicationStoreType,callback:function(a){e.$set(e.formData,"applicationStoreType",a)},expression:"formData.applicationStoreType"}},[e._v("所有门店")])],1),e._v(" "),t("el-form-item",{attrs:{label:"使用说明",prop:"useDescript"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.useDescript,holder:"请输入使用说明",getByType:"word",maxLength:500},on:{"update:inputValue":function(a){e.$set(e.formData,"useDescript",a)}}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.templateId?"编辑":"新建"))]),e._v(" "),e.$route.query.templateId?e._e():t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(c,d,!1,function(e){t("EErG")},"data-v-7ea907ee",null);a.default=u.exports}});
\ No newline at end of file
webpackJsonp([32],{EErG:function(e,a){},tF0P:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t("mvHQ"),r=t.n(o),i=t("l46T"),s=t("Kkt8"),n=t("P9l9"),l=t("3E4D"),m=t("Ch4/"),p=t("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:s.a},data:function(){return{activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"3",commitName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{templateId:"",templateName:"",cardType:"0",cardApplicationChannel:["offlineStore"],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:""},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],cardApplicationChannel:[{type:"array",required:!0,message:"请至少选择一个卡券适用渠道",trigger:"change"}],cardDenomination:[{required:!0,message:"请输入减免金额",trigger:"blur"}],costValue:[{required:!0,message:"请输入成本费用",trigger:"blur"}],cardExplain:[{required:!0,message:"请输入适用门店说明",trigger:"blur"}],applicationStoreType:[{required:!0,message:"请选择适用门店",trigger:"change"}],useDescript:[{required:!0,message:"请输入使用说明",trigger:"blur"}],gicEnterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},cardSelectShow:!1,brandListData:[],chanelList:[]}},methods:{changeEnterprise:function(){this.formData.cardApplicationChannel=[],this.getChanel()},getChanel:function(){var e=this,a={gicEnterpriseId:e.formData.gicEnterpriseId};Object(n.a)("/haoban-app-customer-web/inner/get-channel-type",a).then(function(a){var t=a.data;return 1==t.errorCode&&(e.chanelList=t.result||[],t.result.length&&!e.$route.query.templateId&&(e.formData.cardApplicationChannel=[t.result[0].value])),!1}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeTop:function(e){0==e&&(this.formData.limitTop=0)},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},submitForm:Object(p.a)(function(e,a){var t=this;return t.formData.fitGoodCheck&&!t.formData.fitGoodDes&&t.formData.noFitGoodDes?(t.$message.error({duration:1e3,message:"适用商品至少填写一项"}),!1):t.formData.minCostCheck&&!t.formData.minCost?(t.$message.error({duration:1e3,message:"请输入最低消费"}),!1):1!=t.formData.limitTopType||t.formData.limitTop?1!=t.formData.minGoodsType||t.formData.minApplicableGoods?1!=t.formData.maxGoodsType||t.formData.maxApplicableGoods?2!=t.formData.cardLimitType||t.formData.cardLimit?void t.$refs[e].validate(function(e){e&&t.postSaveCard(a)}):(t.$message.error({duration:1e3,message:"请输入领券限制"}),!1):(t.$message.error({duration:1e3,message:"请输入最高适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入最低适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入封顶金额"}),!1)},1e3),postSaveCard:function(e){var a=this,t={sale_limit:{fee:0},goods:{ok:a.formData.fitGoodDes,no:a.formData.noFitGoodDes},only:a.formData.shareCheck?1:0,discount_amount_upper_limit:1==a.formData.cardType&&1==a.formData.limitTopType?a.formData.limitTop:0,goods_discounts_number_lower_limit:1==a.formData.minGoodsType?a.formData.minApplicableGoods:0,goods_discounts_number_upper_limit:1==a.formData.maxGoodsType?a.formData.maxApplicableGoods:0};a.formData.minCostCheck&&(t.sale_limit={fee:a.formData.minCost});var o={templateId:a.formData.templateId,templateName:a.formData.templateName,cardType:a.formData.cardType,cardApplicationChannel:a.formData.cardApplicationChannel.join(","),erpDemoCode:a.formData.erpDemoCode,cardColor:a.formData.cardColor,cardDenomination:a.formData.cardDenomination,minGoodsType:a.formData.minGoodsType,minApplicableGoods:a.formData.minApplicableGoods,maxGoodsType:a.formData.maxGoodsType,maxApplicableGoods:a.formData.maxApplicableGoods,limitTopType:a.formData.limitTopType,limitTop:a.formData.limitTop,useCondition:r()(t),cardLimitType:a.formData.cardLimitType,cardLimit:a.formData.cardLimit,costValue:a.formData.costValue,useCustomCode:a.formData.useCustomCode,cardExplain:a.formData.cardExplain,applicationStoreType:a.formData.applicationStoreType,useDescript:a.formData.useDescript,gicEnterpriseId:a.formData.gicEnterpriseId,commitName:a.commitName,wxEnterpriseId:a.wxEnterpriseId};Object(n.d)((a.$route.query.templateId,"/haoban-app-customer-web/inner/save-template"),o).then(function(t){var o=t.data;1==o.errorCode&&(l.a.showmsg(a.$route.query.templateId?"编辑卡券模板成功":"新建卡券模板成功","success"),e?(a.formData={templateId:"",templateName:"",cardType:"0",cardApplicationChannel:[],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:a.brandListData[0].enterpriseId},a.getChanel()):a.$router.push("/cardTemplate")),m.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/cardTemplate")}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,a={templateId:e.$route.query.templateId};Object(n.a)("/haoban-app-customer-web/inner/find-template",a).then(function(a){var t=a.data;if(1==t.errorCode){var o=JSON.parse(t.result.useCondition);return e.formData={templateId:t.result.templateId,templateName:t.result.templateName,cardType:String(t.result.cardType),cardApplicationChannel:t.result.cardApplicationChannel.split(",")||[],erpDemoCode:t.result.erpDemoCode,cardColor:t.result.cardColor,cardDenomination:t.result.cardDenomination,limitTopType:String(t.result.limitTopType),limitTop:t.result.limitTop,minGoodsType:String(t.result.minGoodsType),minApplicableGoods:t.result.minApplicableGoods,maxGoodsType:String(t.result.maxGoodsType),maxApplicableGoods:t.result.maxApplicableGoods,minCostCheck:!!o.sale_limit.fee,minCost:o.sale_limit.fee?o.sale_limit.fee:"1",shareCheck:!!o.only,fitGoodCheck:!(!o.goods.ok&&!o.goods.no),fitGoodDes:o.goods.ok,noFitGoodDes:o.goods.no,cardLimitType:String(t.result.cardLimitType),cardLimit:t.result.cardLimit,costValue:t.result.costValue,useCustomCode:String(t.result.useCustomCode),cardExplain:t.result.cardExplain,applicationStoreType:String(t.result.applicationStoreType),useDescript:t.result.useDescript,gicEnterpriseId:t.result.gicEnterpriseId},e.getChanel(),!1}m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},getBrandData:function(){var e=this;Object(n.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(a){var t=a.data;if(1==t.errorCode)return e.brandListData=t.result||[],void(t.result.length&&!e.$route.query.templateId&&(e.formData.gicEnterpriseId=t.result[0].enterpriseId,e.getChanel()));m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(e,a){e&&this.$route.query.templateId&&(this.activeBrand=e)},activeGroupId:function(e,a){e&&(this.activeGroup=e)}},mounted:function(){var e=this;e.$emit("showTab","1"),e.getBrandData(),e.$route.query.templateId&&e.$nextTick(function(){e.getCardData()})}},d={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"common-right-wrap"},[t("div",{staticClass:"new-card-body border-box"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"142px"}},[t("el-form-item",{attrs:{label:"卡券模板名称",prop:"templateName"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.templateName,getByType:"word",holder:"请输入卡券模板名称",maxLength:6},on:{"update:inputValue":function(a){e.$set(e.formData,"templateName",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券类型",prop:"cardType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("抵金券")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("折扣券")])],1),e._v(" "),t("el-form-item",{attrs:{label:"选择商户",prop:"gicEnterpriseId"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeEnterprise},model:{value:e.formData.gicEnterpriseId,callback:function(a){e.$set(e.formData,"gicEnterpriseId",a)},expression:"formData.gicEnterpriseId"}},e._l(e.brandListData,function(e){return t("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}))],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券适用渠道",prop:"cardApplicationChannel"}},[t("el-checkbox-group",{model:{value:e.formData.cardApplicationChannel,callback:function(a){e.$set(e.formData,"cardApplicationChannel",a)},expression:"formData.cardApplicationChannel"}},e._l(e.chanelList,function(a,o){return t("el-checkbox",{key:o+"chanel",attrs:{label:a.value}},[e._v(e._s(a.name))])}))],1),e._v(" "),t("el-form-item",{attrs:{label:"demo券号",prop:"erpDemoCode"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.erpDemoCode,getByType:"word",holder:"请输入demo券号",maxLength:200},on:{"update:inputValue":function(a){e.$set(e.formData,"erpDemoCode",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券颜色",prop:"cardColor"}},[t("div",{staticClass:"card-color flex flex-space-between"},[t("span",[e._v(e._s(e.formData.cardColor))]),e._v(" "),t("el-color-picker",{model:{value:e.formData.cardColor,callback:function(a){e.$set(e.formData,"cardColor",a)},expression:"formData.cardColor"}})],1)]),e._v(" "),0==e.formData.cardType?t("el-form-item",{attrs:{label:"减免金额",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("输入大于0的整数")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"折扣额度",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:1,min:1,max:9.9,step:.1},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("折")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写1-9.9之间的数字")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"优惠金额封顶",prop:""}},[t("el-radio",{attrs:{label:"0"},on:{change:e.changeTop},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("不封顶")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("限制封顶")]),1==e.formData.limitTopType?t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.limitTop,callback:function(a){e.$set(e.formData,"limitTop",a)},expression:"formData.limitTop"}}):e._e(),e._v(" "),1==e.formData.limitTopType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]):e._e()],1):e._e(),e._v(" "),t("el-form-item",{attrs:{label:"最低适用商品件数",prop:"minGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("限制")]),1==e.formData.minGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minApplicableGoods,callback:function(a){e.$set(e.formData,"minApplicableGoods",a)},expression:"formData.minApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.minGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"最高适用商品件数",prop:"maxGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("限制")]),1==e.formData.maxGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.maxApplicableGoods,callback:function(a){e.$set(e.formData,"maxApplicableGoods",a)},expression:"formData.maxApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.maxGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"适用条件",prop:"minCostCheck"}},[t("div",[t("el-checkbox",{model:{value:e.formData.minCostCheck,callback:function(a){e.$set(e.formData,"minCostCheck",a)},expression:"formData.minCostCheck"}},[e._v("最低消费")]),t("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minCost,callback:function(a){e.$set(e.formData,"minCost",a)},expression:"formData.minCost"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元可用")])],1),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.fitGoodCheck,callback:function(a){e.$set(e.formData,"fitGoodCheck",a)},expression:"formData.fitGoodCheck"}},[e._v("适用商品")]),t("span",{staticClass:"font-14 color-909399"},[e._v("(至少填写一项)")])],1),e._v(" "),e.formData.fitGoodCheck?t("div",{staticClass:"fit-good border-box m-b-20"},[t("div",[t("div",{staticClass:"m-b-20 flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.fitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){e.$set(e.formData,"fitGoodDes",a)}}})],1),e._v(" "),t("div",{staticClass:"flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("不适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.noFitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){e.$set(e.formData,"noFitGoodDes",a)}}})],1)])]):e._e(),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.shareCheck,callback:function(a){e.$set(e.formData,"shareCheck",a)},expression:"formData.shareCheck"}},[e._v("不与其他优惠共享")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"领券限制",prop:"cardLimitType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("1张/人")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("100张/人")]),e._v(" "),t("el-radio",{attrs:{label:"2"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("自定义")]),2==e.formData.cardLimitType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardLimit,callback:function(a){e.$set(e.formData,"cardLimit",a)},expression:"formData.cardLimit"}}):e._e(),e._v(" "),2==e.formData.cardLimitType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("张/人")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"成本费用",prop:"costValue"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.costValue,callback:function(a){e.$set(e.formData,"costValue",a)},expression:"formData.costValue"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写大于0的数字(限制两位小数)")])],1),e._v(" "),t("el-form-item",{attrs:{label:"code类型",prop:"useCustomCode"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.useCustomCode,callback:function(a){e.$set(e.formData,"useCustomCode",a)},expression:"formData.useCustomCode"}},[e._v("随机生成")])],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店说明",prop:"cardExplain"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.cardExplain,holder:"请输入适用门店说明",getByType:"word",maxLength:50},on:{"update:inputValue":function(a){e.$set(e.formData,"cardExplain",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店",prop:"applicationStoreType"}},[t("el-radio",{attrs:{label:"1"},model:{value:e.formData.applicationStoreType,callback:function(a){e.$set(e.formData,"applicationStoreType",a)},expression:"formData.applicationStoreType"}},[e._v("所有门店")])],1),e._v(" "),t("el-form-item",{attrs:{label:"使用说明",prop:"useDescript"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.useDescript,holder:"请输入使用说明",getByType:"word",maxLength:500},on:{"update:inputValue":function(a){e.$set(e.formData,"useDescript",a)}}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.templateId?"编辑":"新建"))]),e._v(" "),e.$route.query.templateId?e._e():t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(c,d,!1,function(e){t("EErG")},"data-v-7ea907ee",null);a.default=u.exports}});
\ No newline at end of file
webpackJsonp([31],{NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList"},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loading:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this,e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(t){if(!t.data)return r.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="store-month-performance-task.xls",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.a)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("xcqu")},"data-v-7d5e2579",null);e.default=c.exports},xcqu:function(t,e){}});
\ No newline at end of file
webpackJsonp([33],{NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/monthList"},{id:"2",name:"月指标任务",path:""}],showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loading:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this,e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(t){if(!t.data)return r.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="store-month-performance-task.xls",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.a)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("xcqu")},"data-v-7d5e2579",null);e.default=c.exports},xcqu:function(t,e){}});
\ No newline at end of file
webpackJsonp([33],{"/5td":function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),o=e("Z8ln"),c=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:""}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?c.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/storeMonthTask"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:""}]:"/salerMonthDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth},{name:"导购月指标详情",path:""}]:"/companyDaySet"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth},{name:"商户日权重",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var d=e("VU/8")(s,h,!1,function(t){e("/5td")},"data-v-790bc304",null);a.default=d.exports}});
\ No newline at end of file
webpackJsonp([35],{I9WZ:function(t,e){},OUXi:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),l=s("3E4D"),n=s("P9l9"),o={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,options:[{label:"普通电话",value:1},{label:"双向透传",value:2}],setObj:{taskCallType:1,taskType:1,overDayJudge:"",distributeTypeJudge:"",posDistributeJudge:"",giveUpJudge:"",relaxTaskJudge:!1}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={taskCallType:t.setObj.taskCallType,enterpriseId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,posDistributeJudge:t.setObj.posDistributeJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.d)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):l.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:1};Object(n.d)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","21"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("双向透传,使用GIC双向呼叫及透传功能。计费由GIC计费中心计费,可记录通话记录及监测是否拨通。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("普通呼叫,使用导购自己手机呼叫。计费方式同正常手机运营商呼叫计费。无法记录通话记录及监测是否拨通")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item font-0"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务下发:")]),t._v(" "),s("div",{staticClass:"inline-block vertical-top"},[s("table",{staticClass:"font-14"},[s("tbody",[s("tr",{staticClass:"el-table__row"},[t._m(0),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1)])]),t._v(" "),s("tr",{staticClass:"el-table__row"},[t._m(1),t._v(" "),s("td",{staticClass:"el-table_3_column_8 ",attrs:{rowspan:"1",colspan:"1"}},[s("div",{staticClass:"cell"},[s("el-radio",{attrs:{label:0},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给主门店店长")]),t._v(" "),s("el-radio",{attrs:{label:1},model:{value:t.setObj.posDistributeJudge,callback:function(e){t.$set(t.setObj,"posDistributeJudge",e)},expression:"setObj.posDistributeJudge"}},[t._v("分配给专属导购")])],1)])])])])])]),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("话务任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条话务任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("微信会员")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",{staticClass:"el-table_3_column_7 ",attrs:{rowspan:"1",colspan:"1"}},[e("div",{staticClass:"font-14 color-303133"},[this._v("POS会员")])])}]};var c=s("VU/8")(o,r,!1,function(t){s("I9WZ")},"data-v-760e5c5e",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([35],{"+BXv":function(t,e){},x5Fx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("c9no"),c=a("P9l9"),o=a("PI0u"),r=a("3E4D"),n=a("Ch4/"),i={props:{},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:"",wxSecretKey:"",contactSecret:"",memberSecret:"",wxSecretKeyFlag:!0,contactSecretFlag:!0,memberSecretFlag:!0,wxSecretKeyLastTime:null,contactSecretLastTime:null,memberSecretLastTime:null},showWxError:!1,showContactError:!1}},computed:{},methods:{saveSecret:Object(o.a)(function(t){var e={};if(1==t&&(e.wxSecretKey=String(this.companyObj.wxSecretKey).trim(),this.showWxError=!this.companyObj.wxSecretKey),2==t&&(e.contactSecret=String(this.companyObj.contactSecret).trim(),this.showContactError=!this.companyObj.contactSecret),3==t&&(e.memberSecret=String(this.companyObj.memberSecret).trim()),this.showWxError||this.showContactError)return!1;this.postSaveSecret(t,e)},300),postSaveSecret:function(t,e){var a=this,s=1==t?"/wx-enterprise-wx-secret-set":2==t?"wx-enterprise-contact-secret-set":"wx-enterprise-member-secret-set";Object(c.d)("/haoban-manage3-web/"+s,e).then(function(t){var e=t.data;if(1==e.errorCode)return r.a.showmsg("操作成功","success"),a.getData(),!1;n.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("刷新成功","success"),e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTipData:function(){var t=this;Object(c.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab",1),document.documentElement.style.backgroundColor="#f0f2f5",this.getData(),this.getTipData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{setTip:s.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1),t._v(" "),a("div",[t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1)]),t._v(" "),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.corpName))]),t._v(" "),a("el-tag",[t._v(" "+t._s(1==t.companyObj.contactFlag?"已认证":"未认证"))]),1==t.companyObj.contactFlag?a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),t._v(" "),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpid))])]),t._v(" "),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry)+" / "+t._s(t.companyObj.corpSubIndustry))])]),t._v(" "),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale))])]),t._v(" "),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location))])])],1)],1),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20 secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:t.companyObj.wxSecretKey,callback:function(e){t.$set(t.companyObj,"wxSecretKey",e)},expression:"companyObj.wxSecretKey"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("1")}}},[t._v("保存")]),t.companyObj.wxSecretKeyLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.wxSecretKeyLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.wxSecretKeyFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.wxSecretKeyFlag?"校验成功":"校验失败"))])]),t._v(" "),t.showWxError?a("div",{staticClass:"el-form-item__error m-l-137"},[t._v("请填写客户联系 secret")]):t._e()],1),t._v(" "),a("div",{staticClass:"m-b-20 secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("企业微信中通讯录同步若更新secret,请复制后更新至此处。"),a("br"),t._v("因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"),a("br"),t._v("若发生相关变更,与企业微信无关,特此告知!")]),t._v(" "),a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:t.companyObj.contactSecret,callback:function(e){t.$set(t.companyObj,"contactSecret",e)},expression:"companyObj.contactSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("2")}}},[t._v("保存")]),t.companyObj.contactSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.contactSecretLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.contactSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.contactSecretFlag?"校验成功":"校验失败"))])]),t._v(" "),t.showContactError?a("div",{staticClass:"el-form-item__error m-l-137"},[t._v("请填写通讯录 secret")]):t._e()],1),t._v(" "),a("div",{staticClass:"secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"非必填"},model:{value:t.companyObj.memberSecret,callback:function(e){t.$set(t.companyObj,"memberSecret",e)},expression:"companyObj.memberSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("3")}}},[t._v("保存")]),t.companyObj.memberSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.memberSecretLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.memberSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.memberSecretFlag?"校验成功":"校验失败"))])])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20 m-t-30"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var m=a("VU/8")(i,l,!1,function(t){a("+BXv")},"data-v-75a245ad",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([36],{"+BXv":function(t,e){},x5Fx:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("c9no"),c=a("P9l9"),o=a("PI0u"),r=a("3E4D"),n=a("Ch4/"),i={props:{},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",tableH:window.screen.availHeight-464-126,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpid:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:"",wxSecretKey:"",contactSecret:"",memberSecret:"",wxSecretKeyFlag:!0,contactSecretFlag:!0,memberSecretFlag:!0,wxSecretKeyLastTime:null,contactSecretLastTime:null,memberSecretLastTime:null},showWxError:!1,showContactError:!1}},computed:{},methods:{saveSecret:Object(o.a)(function(t){var e={};if(1==t&&(e.wxSecretKey=String(this.companyObj.wxSecretKey).trim(),this.showWxError=!this.companyObj.wxSecretKey),2==t&&(e.contactSecret=String(this.companyObj.contactSecret).trim(),this.showContactError=!this.companyObj.contactSecret),3==t&&(e.memberSecret=String(this.companyObj.memberSecret).trim()),this.showWxError||this.showContactError)return!1;this.postSaveSecret(t,e)},300),postSaveSecret:function(t,e){var a=this,s=1==t?"/wx-enterprise-wx-secret-set":2==t?"wx-enterprise-contact-secret-set":"wx-enterprise-member-secret-set";Object(c.d)("/haoban-manage3-web/"+s,e).then(function(t){var e=t.data;if(1==e.errorCode)return r.a.showmsg("操作成功","success"),a.getData(),!1;n.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},refeshData:function(){this.refreshData()},refreshData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-refresh",a).then(function(t){var a=t.data;if(1==a.errorCode)return r.a.showmsg("刷新成功","success"),e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(c.a)("/haoban-manage3-web/wxEnterprise-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.companyObj=a.result,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTipData:function(){var t=this;Object(c.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?n.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab",1),document.documentElement.style.backgroundColor="#f0f2f5",this.getData(),this.getTipData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{setTip:s.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1),t._v(" "),a("div",[t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1)]),t._v(" "),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.corpName))]),t._v(" "),a("el-tag",[t._v(" "+t._s(1==t.companyObj.contactFlag?"已认证":"未认证"))]),1==t.companyObj.contactFlag?a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),t._v(" "),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpid))])]),t._v(" "),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry)+" / "+t._s(t.companyObj.corpSubIndustry))])]),t._v(" "),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale))])]),t._v(" "),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location))])])],1)],1),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20 secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【客户联系】API中若更新secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("客户联系secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:t.companyObj.wxSecretKey,callback:function(e){t.$set(t.companyObj,"wxSecretKey",e)},expression:"companyObj.wxSecretKey"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("1")}}},[t._v("保存")]),t.companyObj.wxSecretKeyLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.wxSecretKeyLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.wxSecretKeyFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.wxSecretKeyFlag?"校验成功":"校验失败"))])]),t._v(" "),t.showWxError?a("div",{staticClass:"el-form-item__error m-l-137"},[t._v("请填写客户联系 secret")]):t._e()],1),t._v(" "),a("div",{staticClass:"m-b-20 secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("企业微信中通讯录同步若更新secret,请复制后更新至此处。"),a("br"),t._v("因获取Secret而获取通讯录的相关信息。首次使用好办请输入。"),a("br"),t._v("若发生相关变更,与企业微信无关,特此告知!")]),t._v(" "),a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("通讯录secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"必填"},model:{value:t.companyObj.contactSecret,callback:function(e){t.$set(t.companyObj,"contactSecret",e)},expression:"companyObj.contactSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("2")}}},[t._v("保存")]),t.companyObj.contactSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.contactSecretLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.contactSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.contactSecretFlag?"校验成功":"校验失败"))])]),t._v(" "),t.showContactError?a("div",{staticClass:"el-form-item__error m-l-137"},[t._v("请填写通讯录 secret")]):t._e()],1),t._v(" "),a("div",{staticClass:"secret-cell"},[a("span",{staticClass:"inline-block w-127"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业微信中【应用管理】关联的会员小程序secret,请复制后更新至此处。首次使用好办请输入。",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("会员小程序secret:")])])],1),a("el-input",{staticClass:"m-l-10 w-399",attrs:{maxlength:"200",placeholder:"非必填"},model:{value:t.companyObj.memberSecret,callback:function(e){t.$set(t.companyObj,"memberSecret",e)},expression:"companyObj.memberSecret"}}),a("el-button",{staticClass:"m-l-20",attrs:{type:"text"},on:{click:function(e){t.saveSecret("3")}}},[t._v("保存")]),t.companyObj.memberSecretLastTime?a("span",{staticClass:"m-l-20 font-12 color-909399"},[t._v("最后一次保存:"+t._s(t._f("formatTimeStamp")(t.companyObj.memberSecretLastTime)))]):t._e(),a("span",{staticClass:"m-l-37 font-14 color-303133"},[a("span",{class:["iconfont",t.companyObj.memberSecretFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(t.companyObj.memberSecretFlag?"校验成功":"校验失败"))])])],1)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"company-title m-b-20 m-t-30"},[e("span",{staticClass:"color-303133 font-14 font-w-600"},[this._v("客户密钥维护")])])}]};var m=a("VU/8")(i,l,!1,function(t){a("+BXv")},"data-v-75a245ad",null);e.default=m.exports}});
\ No newline at end of file
webpackJsonp([37],{JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("Xxa5"),n=a.n(o),s=a("exGp"),r=a.n(s),i=a("//Fk"),c=a.n(i),l=a("mvHQ"),p=a.n(l),d=a("c9no"),u=a("NKg7"),g=a("P9l9"),f=a("Ch4/"),h=a("3E4D"),v={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var o=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){var n=[t,e=parseInt(e)>0?e-1:11,a],s=3!==n.length?new Date:new Date(n[0],n[1],n[2]),r=void 0,i=void 0,c=void 0,l=void 0,p=!1,d=s.getFullYear();for(r=365*(d-1921)+Math.floor((d-1921)/4)+[0,31,59,90,120,151,181,212,243,273,304,334][s.getMonth()]+s.getDate()-38,d%4==0&&s.getMonth()>1&&r++,i=0;;i++){for(c=l=o[i]<4095?11:12;c>=0;c--){if(r<=this.getBit(o[i],c)){p=!0;break}r-=this.getBit(o[i],c)}if(p)break}var u,g=void 0;g=l-c+1,u=r,12===l&&(g===Math.floor(o[i]/65536)+1&&(g=1-g),g>Math.floor(o[i]/65536)+1&&g--);var f="一二三四五六七八九十".charAt(u-1);return u%10==0&&10!==u||(f="一二三四五六七八九十".charAt((u-1)%10)),console.log(),1===u?"正二三四五六七八九十冬腊".charAt(g-1)+"月初一":"正二三四五六七八九十冬腊".charAt(g-1)+"月"+(u<11?"初":u<20?"十":u<30?"廿":"三十")+f}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(g.a)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId||localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",type:t};Object(g.a)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(p()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(p()(a.result.close))||[]);f.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(g.a)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(g.a)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?f.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toLogin:function(){var t=this;return new c.a(function(e,a){Object(g.a)("/haoban-manage3-web/get-login-info",{}).then(function(t){var a=t.data;if(1==a.errorCode)return localStorage.setItem("userInfos",p()(a.result)),void e(a.result.wxEnterpriseId);f.a.errorMsg(a),e({wxEnterpriseId:""})}).catch(function(a){e({wxEnterpriseId:""}),t.$message.error({duration:1e3,message:a.message})})})},getTipData:function(){var t=this;Object(g.a)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?f.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(g.a)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;f.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).getBindData(),e.next=4,a.toLogin();case 4:a.wxEnterpriseId=e.sent,a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 9:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:u.a,setTip:d.a}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,o){return a("li",{key:o+"app",staticClass:"border-box",on:{click:function(a){t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}))]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,o){return a("li",{key:o+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}))])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),a("div",{staticClass:"serve-store flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"GIC已同步上线门店总数,实时获取",placement:"top-start"}},[a("span",{staticClass:"w-86 font-14 color-909399 text-left",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("门店总数")])])],1),t._v(" "),a("span",{staticClass:"font-14 color-303133 "},[t._v(t._s(t.versionData.storeTotal))])])])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,o){return a("li",{key:o+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var w=a("VU/8")(v,m,!1,function(t){a("V2X1")},"data-v-736855a7",null);e.default=w.exports},V2X1:function(t,e){}});
\ No newline at end of file
webpackJsonp([38],{YKf6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),s=a("P9l9"),l=a("Ch4/"),r=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(s.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(s.d)("/haoban-app-performance-three-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,enterpriseId:this.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");l.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.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())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-133 ",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-133 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"first-item font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("bQBn")},"data-v-71d22391",null);t.default=u.exports},bQBn:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{YKf6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),s=a("P9l9"),l=a("Ch4/"),r=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"3",activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(s.d)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!i()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(s.d)("/haoban-app-performance-three-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,n={taskId:t.taskId,enterpriseId:this.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/remove-clerk-month-performance-task",n).then(function(t){var n=t.data;if(1==n.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");l.a.errorMsg(n)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(s.a)("/haoban-app-performance-three-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.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())}},activated:function(){this.init()},mounted:function(){this.init()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-133 ",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-select",{staticClass:"w-133 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"first-item font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("bQBn")},"data-v-71d22391",null);t.default=u.exports},bQBn:function(e,t){}});
\ No newline at end of file
webpackJsonp([38],{c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),o=a.n(s),i=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.templateId)}).catch(function(){})},delCardList:function(t){var e=this,a={templateId:t};Object(u.d)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardTemp?templateId="+e.templateId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardTemp")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return o()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={wxEnterpriseId:(a=t).wxEnterpriseId,search:a.searchInput||""},Object(u.d)("/haoban-app-customer-web/inner/list-template",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result||[],void(!a.searchInput&&e.result&&e.result.length&&(a.total=e.result.length));i.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入模板名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[t._v("内购券是选取GIC中针对企业内部员工发下的,最多创建20个模板")])],1),t._v(" "),a("el-button",{attrs:{disabled:t.total>=20,type:"primary"},on:{click:t.toNewCard}},[t._v("新增模板")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.templateName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commitName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("eoo/")},"data-v-6efc98f3",null);e.default=f.exports},"eoo/":function(t,e){}});
\ No newline at end of file
webpackJsonp([39],{bMo2:function(t,e){},nV1L:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("bzW+"),i=a("Qie6"),c=a("Z8ln"),o=a("Ch4/"),r=a("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:""}],tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(t){a("bMo2")},"data-v-6e472252",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([40],{JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),n=a("exGp"),o=a.n(n),i=a("3E4D"),l=a("Ch4/"),c=a("PI0u"),u=a("P9l9"),d={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(c.a)(function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("同步成功","success"),void e.getSyncDate();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return o()(s.a.mark(function t(){var r;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a,"first"!=e.name){t.next=5;break}r.getCustomerSet(r.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}r.getShowSet(r.brandId),t.next=15;break;case 9:return t.next=11,r.getGroupClassSet(r.brandId);case 11:return t.next=13,r.getGroupClassify(r.brandId);case 13:return t.next=15,r.getGroupList(r.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(u.d)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("设置成功","success"),!1;l.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toChangeTemp:function(e,t,a){var r=this;console.log(e,t,a);var s={enterpriseId:r.brandId,wxEnterpriseRelatedId:r.wxEnterpriseRelatedId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(u.d)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",s).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("操作成功","success"),r.pageNum=1,void r.getGroupList(r.brandId);a.isSendTemplate=!1,l.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.d)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)},components:{}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[a("el-checkbox",{on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员分组到期后不展示")])]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")]),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("vZ+u")},"data-v-6a674b86",null);t.default=m.exports},"vZ+u":function(e,t){}});
\ No newline at end of file
webpackJsonp([39],{JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),n=a("exGp"),o=a.n(n),i=a("3E4D"),l=a("Ch4/"),c=a("PI0u"),u=a("P9l9"),d={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,syncDate:""}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(c.a)(function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("同步成功","success"),void e.getSyncDate();l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),handleTabClick:function(e,t){var a=this;return o()(s.a.mark(function t(){var r;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a,"first"!=e.name){t.next=5;break}r.getCustomerSet(r.brandId),t.next=15;break;case 5:if("second"!=e.name){t.next=9;break}r.getShowSet(r.brandId),t.next=15;break;case 9:return t.next=11,r.getGroupClassSet(r.brandId);case 11:return t.next=13,r.getGroupClassify(r.brandId);case 13:return t.next=15,r.getGroupList(r.brandId);case 15:case"end":return t.stop()}},t,a)}))()},getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(u.d)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("设置成功","success"),!1;l.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(u.d)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toChangeTemp:function(e,t,a){var r=this;console.log(e,t,a);var s={enterpriseId:r.brandId,wxEnterpriseRelatedId:r.wxEnterpriseRelatedId,memberTagGroupId:a.memberTagGroupId,isSendTemplate:1==a.isSendTemplate?1:0};Object(u.d)("/haoban-app-customer-web/memberGroup/save-member-group-is-template-message",s).then(function(e){var t=e.data;if(1==t.errorCode)return i.a.showmsg("操作成功","success"),r.pageNum=1,void r.getGroupList(r.brandId);a.isSendTemplate=!1,l.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.d)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo.total);l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId)},components:{}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[a("el-checkbox",{on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}}),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组到期后,好办移动端将不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("会员分组到期后不展示")])]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.toSync}},[e._v("立即同步")]),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("vZ+u")},"data-v-6a674b86",null);t.default=m.exports},"vZ+u":function(e,t){}});
\ No newline at end of file
webpackJsonp([4,49,51,60,64,71],{"/XIA":function(e,t){},"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("JXCd")},"data-v-5106f326",null);t.default=n.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont icon-icon"})])])}]};var n=i("VU/8")(a,s,!1,function(e){i("/XIA")},"data-v-2858c829",null);t.default=n.exports},"9yoH":function(e,t){},Isrn:function(e,t,i){"use strict";var a=i("Mk6G"),s={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){var t="",i={};return t=a.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=a.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=a.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=a.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("Lz4M")},"data-v-407eef81",null);t.a=l.exports},JXCd:function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),n=i("Gu7T"),l=i.n(n),c=i("gBtx"),r=i.n(c),o=i("mvHQ"),d=i.n(o),u=i("u4Bf"),p=i.n(u),m=i("Isrn"),h=i("l46T"),v=i("8dpP"),f=i("rYZf"),g=i("2WGr"),y=i("zHtI"),I=i("O3gZ"),_=i("fPyK"),C=i("fZjL"),b=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){b()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}))],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("VE2D")},"data-v-8a79941e",null).exports,M=i("3E4D"),L=i("Ch4/"),O=i("PI0u"),F=i("P9l9"),T={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&s[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;s[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,s){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(O.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i={status:1,enterpriseId:t.enterpriseId,templateContent:d()(e),title:t.templateObj.title,description:t.templateObj.description,storeType:t.templateObj.storeType,memory:[]};Object(F.d)("/haoban-app-daily-three-web/daily/save-define-template",i).then(function(e){var t=e.data;1!=t.errorCode?L.a.errorMsg(t):M.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(F.d)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(1==i.errorCode){JSON.parse(localStorage.getItem("userInfos")).enterpriseId;var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}L.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(F.d)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?L.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(r()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(F.d)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));L.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(F.d)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();L.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(r()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(r()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;s.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:v.default,selectCom:f.default,dateRangeCom:g.default,inputCom:y.default,blockCom:I.default,qrcodeDialog:_.a,customSet:k},mounted:function(){var e=this;e.$emit("showTab","32"),document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;s.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},V={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}))],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(s,n){return a("li",{key:"li"+n,class:["filed-item","child-filed-item",e.currentChildKey==s.name&&e.currentChildIndex==n?"active-item":""],on:{click:function(a){a.stopPropagation(),e.selectChildItem(s.name,i,n,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),e.deleteChildItem(s.name,i,n,t.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):e._e(),e._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):e._e(),e._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):e._e(),e._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):e._e(),e._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):e._e()],1)}))],1)]):e._e()]],2)}))],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(s,n){return[a("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:s.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(s,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}))])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,s){return[e.currentChildIndex!=s||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字")]):e._e()],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(s,n){return[a("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:s.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(s,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=s||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=s||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}))])],e._v(" "),e.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var j=i("VU/8")(T,V,!1,function(e){i("9yoH")},"data-v-38616cae",null);t.default=j.exports},Lz4M:function(e,t){},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])})),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("gqXI")},"data-v-530ad580",null);t.default=n.exports},VE2D:function(e,t){},Y7wY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja7J0LcJ1lmcebS3NOEnJrE5I2aUJrLyksrYBctlDxxqAdEWVwhV1kvY84OoPCLO7gwojrrO64qzM64nhDO7jVtVNXYdLtAiJia5GFGhCalrVt2iRNmrQnl57kpLn5Sx58ef2+c05OCt00J///ZDJfvvOd93ve5/0//+d53u8kyemNnVwgCPMAuXKBIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrgviuiCI64IgrguCuC4I4rogiOuCIK4LgrguCOK6IIjrgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogrguCuC4IWYL8WbdgYGBgZGRkYmJCi5HdyMnJWbhwYUlJyawZMLv/VyMWi42Pj4sH86iQyM2tqKiYd7qOokP0/Py8aLQgZ0GOeBBGYvjUyMhoQUHBOcXFOblzu+CcGB8/GY+fOnWKdZ8VdZ9N91G68F1ET4OxsTG+ZwHRJ0uI3Fwm4tZ9fnHdanQRPQ3GxyeMJVlSsk9NZLZ6M+3DCPOmVZALBHFdEMR1QRDXBUFcF4RZRr5ckDXo7Ooc6B8oLi4sKiwuKS3Jy9PiiutZiory8qHBwf6Bgbb2dn4sLiouKSmpqqosLCyWc8T1rEIkEl2+fIUdD6DwA/2xWC9iHymIVFRUiPTienaihCKmpHTp0rrh4cTx4z3d3T2QHqWvrq6urKwS14XsFHsYzxcy39nZdeDggfb2djSeM+L6HEMikeg5HrPPSDXU/8X6tR5u8388S15taz9aubgiGo2eCW8MDcVHR8fGRscGh+LuZG5efnFREQcrVixvbu4fPjVMQU9VM99KmjnPdUf0uQKsxea62iWvyWhWl8fjNKVxSJzhu0pLS+dh7T7nuW5EX1a3NDf0YcCAoJ4lrzqbX8WUR2OT6I31nnAnqcUnGVxUhIQXFBRQugTe1dHRZvsz+Xn5DfX1qtfnHqYlVjYZ3BuLdff0OIrDWkqRivKKaXfTe3q6jeiTlczyFfNzQ0a96ZzIXaNdXZ3d3T2uSqmqrILi5Zn9MhtEpyV1RC+fpV+BE9eFdBgfH+/r62ttPTQ6NmpCXlNTXV1dk/kz0QDR5+2Go7h+VrO8u7v7WHfP2PhkcR8piNTW1s6UqSJ6VnHdNvjmUNWeicEnemNdnV3Dp05xnJebt2RJzWlshw8NxR3R6+sb5jnRpeuvLfqbm5pe6K+78qarGk53iEQi0d7RMXDy5T9kUl4+2XpWVc2YppT4e/e2uOK+prpGyyOun0Xo6uo62tVlxyXnnFO7dOnI6Gn+8ZyWlhYr8YuLiuvn5Q6juH6WIh6PHz5y5JWipaa6srKS45GTg6cx2sGDB+KDcetlV65cqQ/3iuuvGWLP79j+B/dY58jOLVt2LliQU7fh5o0Z1TIdHUeP9XQ7Oa9ftmzhwoWnbUzLvr39/f1G9LVrG8MPlcR1YXYwsWC8t68vIOevBrVLa/Ny88fGRxvq6/XJdR+z+fccjx8/PqVkRfO8Nx0cGmxv71hWVxf+QNjAVA2zePHirCGcLfqszEi6PvsoKixauXJFjn739wxD/j070qsWQro+p1C6ftNN6+UG6foZQuvhtsDvRshgQTWMIK4Lgrg+V6B/RCNkf2+al5c3NjZ2pK1jwRz53WqzWcyTrs8YlYsr5hZ18vPysFnM+/+Hnpue1dBzU+m6IIjrgiCuC+K6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogiOuCuC4I4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCuC4K4LgjiuiCI6xkiJydnweQ/gpvQMqRcntwpF2XLXyG2idi6zy+u23/xTCROie6pYH+W9WQ8ngV0Hx8fZyJu3WdBW2fxb5eCWCymP50+zzJVbkVFxXzkOhgYGBgZGZmYkLRnP8vz8/NLSkpmrWaeda4LQvbX64IgrguCuC4I4rogiOuCIK4L4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64K4LgjiuiCI64Iw97g+PDwcOHOs+9gjj+5IevGRI4f58s/85je/TnPL5//wXPoLwEsv7Q/bYOjv72MEN5Q7Bt+8/+u8mvnkf/DD74VPhmfKmaf/93dJR+C8b0DYpMzvG5gjN01qWyq3JF2IMwrWiC87/sVD/5XGMPzpG8ZxKi5l7iVuF2YRw6YxIz+pyx56+Oc33vi+aCTy3HPNdvJE7MT+/fsKo4XusquueqMdtLYe4vuyZfXuJWbuXg3jmWeeXvm6Venn+Z3vfuu9773phReed2cuueTS1avW9PX3DScSjHDhX63jZF9vr8+DwcHB0tKypDMyIw1l5eX29hdffCGJExOJ9vY2/0xZaVlT08M11TX+HA1PPPH41Ve/2W7R2dV56Rsu801KhaT39fHt73wrHo/fdtsnz6061z/f1PTQW99yDWb41Dn33Opjx7o42PP7Z93JSDTq3gtp8ExRUVHSe/X09Fxx+V+zXjiQ8dMbtmnTdTYslPqPLQ9+6IMfsYCHGxe9/mL/SmfApHY8suPyy65wL2Hn0NBQeI3CXgqcLCsrc+sbiUT+748vQct3XfduR3QWjvMz4DquXLVq9f33f+PTt9/R0HCeM72t7Yj7cabwQ5A5LFq0OKm0r1u3nsmgFjAbznGZeRDvwCFW9LFfPsJiJ73F7t27uOAf7vpM4Py/fvnfT89mxNWFekNDw67f7qydChgXKpPqe6xrzeo1HLfs2+sLQUDpCc70ouU4ZGvGElx80SWbNz9w660f5Lz5ypcP/MB3GHzo0MHP3X2vRfKJE8dNemAAxx/4+w+76y+99HJiNal5LkII6YBvkby6umU+icv+TLUd/7N9w4YrsXMqQh7GP2aSi5/KykoMsLkTjeZJ+MNb9ux5trFxrSOA+dN/e2Cavt6Z5xkWPtTW1u3atbMQRAuHEkNE1DXXXMuwboGm5zq45m3XNq5ZC+2e+t1uEznc2t3d7e7NXcMilwlYBr4vqliU5pq9LS+ef/4FTIbLevt6U13vaE0aufPOz+LBL9z3L4Q1YhCwjR8DZxzVfM6x0l//xtfc4AjG7qd+i+bxo0tE2I+cmCtZv/POW25K09z8+9Wr1+BoXg0kkIb6hvKy8kQiEY1GXbQ7Vtl5xyFWkaE+9cnbmQhEN7qH5w6NUNbvff/b73//B/r6+kyDzLccmzD5fjh6tAPtSOVw7DSlDHiJVIDnwwttVSj+wYatW3+yadM7SWimaAQkJ3HjlRs2Wg5HsMx75hnmW1xcXLu01oayk3jJj0y3BOGTrjRgWGx761veZgTAGBN4f4Ey4rqrSSC9SzEQPdW909f6viYhWsRJmgoHscRlaIkVA2lKAgTbCR6UxeOWv3D0tFpuVHOco/z46U9/zOx4o5spB3gNRXz66acsxVPUQSwX8EQC6uXyb6oAJhgikShWmUj77iWD/fwXP7vzjrsch7Zt20rpYhPhYt7y+OOPOWb4QFkRXRbVCaSv62gTB46maxvP7+rq9BXHLnavZq5W+AEjWUSO97+0DxsgOouOza52vf5d76E0sOtZSj9adu56kqrPYsOnOz50QhOWs3CK9of1a2ZbvoxqGHdLooS8EKhcfRV0abe9o/0vfDFVO4bF1YBoXXvtO9K40pUNM8LNN93y6yd/xTKYSZCms/MoTFp34XrqovCYlkz9NoM8G4525vilL3/xhhtu5Ee4whpToVrAcwtmalzHuVbyhmPbFZfMmrLQL8GxlpLXBjeN2LFjO8WAXzSjXu/7m5vD9R53R7k//KGPWX1iPvd1HSr7NpA6/Przueebr3vn9f4CcXcbxAcBw5jhoplZ7N/XYnrMF1Qjzu12jOM8FgaMYkyr+sLeDigURE+jWYHA8KOCoiAjrtstzbmIOioLUqn+yxMYQkJaLY/8OUmdg1KGuQ75cCgsTKrWLAZ+fOyXj1IYZM5yVAF9/dhHP87giJUtDIK9YsXrkBz/Sov+VOprrHVrbHspkO9vb77FJIpFra6uga8sJMe8ZD5ldZk+wZbeTt7CrMu81png8alPPFC6bPnxgxdccKHV1vjQ784DSZxK/Z/u+UeOk9brSd/1/Qe+SyxxQDlKLW7dKr5ixWn6w3LIZZN09zKA0zjjOnPHYALSxRWzYFJ4yaYcGJDCmvgMpLjCwiK/NUq/oeduhK8cwfyomIGuh1XWZWq/ufQDjkYEtcN3Rneq7Ysuupi87+cpl7/gh+vhwuQj11OKpFrgQKmz7WdbsYQBIbptXEDKd7x90z9/8fNoofMUJQR3IRJQbtezm1OIycCY2/+7ifME5OLFlXSHZFsU0Rc2zDt48AAlOMeUpMyI1f3sXXenav8DqZkpJ83OlqBtEH/DJ5UrCC27+PP33WMy4et6qi2Eqqoqq9lYLNet2qYQzAsXqKRxSu00BSerbBfgajTb/MlQ0J06fvWqNQEBxv+YTYVDMDinhSs0azQZjYNUHT8ttb+39kohlyLOp+e6CV5gi9DfMrPcx9pYvFKO0yN++vY7IB/U8XcApzb+WnnJnWThA8XcZEZ+w2WZcN36RTpxfMGAlLwsjPXTvsucp57d8wxVBCY9+KPNmIqX6XpN5HwsWrQI15MriBZqDKhsxmA5RDEhpFTlLgSYZbykhabjNPLj64IJIQ4kd5kZqXoeXkLX0bxUGRxppN1kCpgR0PVw7rWdNALYXkWtXbeaKuOnh4WT3QJrJ7vb3gVQ3H6E7p+47VMBAXZ0RJI2bLiSxhoPQE3EzvTIzZ2XnAjaeaSKtZg2eabH9FwnQ6XZaqQ7sTbF9g2am/fgfUynfv3VE4/7OvqT/9xC15x0/zt9iYIU+RHsGj6Tk1QPLxAGhNz4Pbkn2LL33dffYNzCZtIrhKNacJshNiZlm7WkAakjkGxj2zfAuB4oNMP7g3604wS8xK03bryaFb3l725N6hCojIIgbMaeMHDv7t27CgsLmUJglyl8a27HRDAsaY+LZFCwJd24SLP90LJvL77CLYyMutMAuNDlR3/bO9VGn8kQ8ekndnMR07FNHvxA3YhOcZ6ldNIQSEHpn+dkxHV7WLh//75AxebjySefYNncj7t27bTnC6RIehQn22kYkAq2e0X5TvllNWLmDwVxpe0g4QV4fODAHwkz245EVCZbwPoGSl4KHlc6n9FHjEyE1pm+3NWpcCsaiZL9Ak2twe3MkFsgYlhrzL0ckCfdhgHFpNvWcLvRk/36VNuNK5BY15suWbIUaee7Vf8z4jpiQWvkMjz2kzTIV1AQAcZaxnf9W5r1DRSQiCNFAfnTYtLUk2qHktg5JGn5l6omzIjrZH9Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},ZcO4:function(e,t){},gqXI:function(e,t){},k7oF:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("ZcO4")},"data-v-337dd046",null);t.default=n.exports},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("k7oF")},"data-v-09e8bcce",null);t.default=n.exports}});
\ No newline at end of file
webpackJsonp([4],{"+wU6":function(e,t){},"01az":function(e,t){},"09oy":function(e,t){},"67Xm":function(e,t){},C2ZR:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAwIDIwMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6IzNENkFFODt9DQoJLnN0MXtmaWxsOiM4NkFERjI7fQ0KCS5zdDJ7ZmlsbDojRTFFREZGO30NCjwvc3R5bGU+DQo8Zz4NCgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjguNiwxSDEyMGw2MCw1OS43djEzMC42YzAsNC43LTMuOCw4LjUtOC42LDguNUgyOC42Yy00LjcsMC04LjYtMy44LTguNi04LjVWOS41QzIwLDQuOCwyMy44LDEsMjguNiwxeiIvPg0KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMjAsMWw2MCw2MGgtNDYuN0MxMjYsNjEsMTIwLDU1LDEyMCw0Ny43VjF6Ii8+DQoJPHBhdGggY2xhc3M9InN0MiIgZD0iTTQ2LjcsMTAwLjRoMTA2Ljd2MjBINDYuN1YxMDAuNHogTTQ2LjcsMTQwLjRoMTA2Ljd2MjBINDYuN1YxNDAuNHoiLz4NCjwvZz4NCjwvc3ZnPg0K"},DMLr:function(e,t){},"Rf/K":function(e,t){},aQaK:function(e,t){},fr9j:function(e,t){},gkKV:function(e,t){},jtl6:function(e,t){},ozRG:function(e,t){},"q+Sm":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("l46T"),o=a("PI0u"),r=a("P9l9"),l=a("3E4D"),c=a("Ch4/"),n={props:{materialIds:{type:Array,default:function(){return[]}}},components:{limitInput:i.a},data:function(){return{width:"347px",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!0,groupData:[],ruleForm:{categoryId:""},rules:{categoryId:[{required:!0,message:"请选择分组名称",trigger:"change"}]},categoryName:"",currentCategoryId:"",expandArr:[]}},methods:{toCancel:function(){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.ruleForm.categoryId,materialIds:e.materialIds};Object(r.d)("/haoban-manage3-web/material-batch",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitGroup")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGroup:function(e){e.expand=!e.expand,this.ruleForm.categoryId=e.categoryId,this.currentCategoryId=e.categoryId,this.categoryName=e.categoryName,e.expand?this.expandArr.push(e.categoryId):this.expandArr.splice(this.expandArr.indexOf(e.categoryId),1)},selectNoGroup:function(){this.ruleForm.categoryId="-1",this.currentCategoryId="-1",this.categoryName="未分组"},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.categoryId==e.categoryParentId});return a.length>0?t.children=a:t.children=[],0==t.categoryParentId});return console.log("tree:",t),t},getGroupData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.d)("/haoban-manage3-web/category-list",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length&&(a.result.forEach(function(e){e.expand=!!t.expandArr.includes(e.categoryId)}),t.groupData=t.treeData(a.result)||[])}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.getGroupData()}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量操作-移至分组",visible:e.dialogVisible,width:"485px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"分组",prop:"categoryId"}},[a("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom",trigger:"click"}},[a("div",{staticClass:"select-tree-wrap"},[a("div",{staticClass:"group-body"},[a("div",{class:["no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer","-1"==e.currentCategoryId?"current-group":""],on:{click:e.selectNoGroup}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right"],staticStyle:{color:"transparent"}}),e._v("未分组")]),e._v(" "),a("ul",{staticClass:"group-ul padding-lr-12"},[e._l(e.groupData,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])]),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])]),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])])])]})],2):e._e()])]})],2):e._e()])]})],2)])]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:e.width}},[e.ruleForm.categoryId?e._e():a("span",{staticClass:"font-14 color-c0c4cc",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择")]),e._v("\n "+e._s(e.categoryName)+"\n ")])])])])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var d=a("VU/8")(n,s,!1,function(e){a("gkKV")},"data-v-6c719b2a",null).exports,u=a("mvHQ"),m=a.n(u),p=a("fZjL"),g=a.n(p),f=a("Kkt8"),h=[{imgUrl:"https://pic01-10001430.image.myqcloud.com/b0d3c14f-69e7-4753-8fbc-3bffcff9f8ce",gifUrl:"https://pic01-10001430.image.myqcloud.com/204994d9-48d8-4bfe-bfbd-e8168d444965",key:"[微笑]",keyCode:"/::)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5f7c1eb-358e-47fe-a43c-7ae1ba5e95fd",gifUrl:"https://pic01-10001430.image.myqcloud.com/87bbdce9-82e4-4fb0-8d6c-b867ccf7e058",key:"[撇嘴]",keyCode:"/::~"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/32201a50-e937-4594-bfb2-68dc674d29a1",gifUrl:"https://pic01-10001430.image.myqcloud.com/df55c677-7adb-48f2-bf65-6cf592eccf80",key:"[色]",keyCode:"/::B"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/674f2eea-85fd-4735-9ae5-416aef938857",gifUrl:"https://pic01-10001430.image.myqcloud.com/c44c6034-c191-4526-ac80-c5f7f0fbcf5f",key:"[发呆]",keyCode:"/::|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a52e4031-51e6-47c4-9a7d-4aa36902e868",gifUrl:"https://pic01-10001430.image.myqcloud.com/684dcfac-a95f-49fc-8d9d-8d3627f4a26e",key:"[得意]",keyCode:"/:8-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d5d3c311-30a7-46d4-bd6b-e09e9e270eb8",gifUrl:"https://pic01-10001430.image.myqcloud.com/3f17d82f-beb6-4e0f-be8b-72c571558438",key:"[流泪]",keyCode:"/::<"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/014fb90d-db81-4a6d-b89d-6edc21825c57",gifUrl:"https://pic01-10001430.image.myqcloud.com/6ce13f11-6c26-4e5a-b3b1-f47151b61e30",key:"[害羞]",keyCode:"/::$"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fecaa108-f9ee-4871-88f8-04fe9dd006c4",gifUrl:"https://pic01-10001430.image.myqcloud.com/0fe29af4-bddc-46c2-a063-f8d8e4414d13",key:"[闭嘴]",keyCode:"/::X"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/61373735-d6a4-42ec-beb8-f2ad3a4204ae",gifUrl:"https://pic01-10001430.image.myqcloud.com/9fa3a5f6-3814-46df-a85c-e27711b41c45",key:"[睡]",keyCode:"/::Z"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/5e18d40c-00fe-4fa8-94bb-fc5879b601db",gifUrl:"https://pic01-10001430.image.myqcloud.com/87d28ce0-72d2-44ab-a5b9-899ca92737c3",key:"[大哭]",keyCode:"/::'("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9956bdde-87e2-4377-a77d-2d7a6510dcca",gifUrl:"https://pic01-10001430.image.myqcloud.com/28d4443a-ae59-459b-8fa0-c5d236a84208",key:"[尴尬]",keyCode:"/::-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a36b8868-369d-4022-be38-e71970b4b0ed",gifUrl:"https://pic01-10001430.image.myqcloud.com/a3db89ce-6b1a-44e9-a276-8284dfba6fec",key:"[发怒]",keyCode:"/::@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2b46750b-e399-41fa-88da-cef0705adb68",gifUrl:"https://pic01-10001430.image.myqcloud.com/a340191e-00f0-4aed-9c4b-5084c9d48a3f",key:"[调皮]",keyCode:"/::P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3d140d2-3490-4d12-a16f-5786c50e92e6",gifUrl:"https://pic01-10001430.image.myqcloud.com/3741398d-ac5e-4ca4-aff2-7072d4f3e809",key:"[呲牙]",keyCode:"/::D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d54d58f6-a89a-4a70-9e7a-834ba728e5cb",gifUrl:"https://pic01-10001430.image.myqcloud.com/62bb88d4-a38b-4d0a-943b-854e35f4216d",key:"[惊讶]",keyCode:"/::O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb0633a-3610-48dc-a4da-79b74d91c5a3",gifUrl:"https://pic01-10001430.image.myqcloud.com/a9f355d2-89d5-41c3-96c9-53e6c1893ce8",key:"[难过]",keyCode:"/::("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7ae8e3ea-864f-4864-ba73-fbc731fe5e43",gifUrl:"https://pic01-10001430.image.myqcloud.com/75533bd8-4d96-4d14-a28e-18f01141fd53",key:"[酷]",keyCode:"/::+"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1ad076a0-a052-4cc5-bd1b-d46bdaf25928",gifUrl:"https://pic01-10001430.image.myqcloud.com/b551bd90-8f9c-49d4-a73f-05852da72e4e",key:"[冷汗]",keyCode:"/:--b"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/756eb481-d965-4b09-abe6-5ea2f7d460db",gifUrl:"https://pic01-10001430.image.myqcloud.com/9a9f6be6-6c9f-496e-8f40-cdd56670b1cb",key:"[抓狂]",keyCode:"/::Q"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/56107e91-303c-4d4c-bbc2-6a6ace586777",gifUrl:"https://pic01-10001430.image.myqcloud.com/70b702b8-b1f2-4071-8fa1-01b4bac8c8cb",key:"[吐]",keyCode:"/::T"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/363eb785-69a9-4f18-8e45-cb069bb12c4c",gifUrl:"https://pic01-10001430.image.myqcloud.com/fc61ddbf-a962-4043-a5cc-cb7a8a4edbcc",key:"[偷笑]",keyCode:"/:,@P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/888ee4dc-0274-4c3d-bb84-e3ba943ff86f",gifUrl:"https://pic01-10001430.image.myqcloud.com/223e7c88-5ffa-4392-a4b1-e5785bf59e19",key:"[愉快]",keyCode:"/:,@-D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5a391da-659b-48ab-8007-a8888f98ec66",gifUrl:"https://pic01-10001430.image.myqcloud.com/8fb34158-562b-4710-ae93-47b64174bdbf",key:"[白眼]",keyCode:"/::d"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3c70943-f4a2-4e15-a9fb-f8f840878a6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8a0a3dcb-ea02-4c9d-9fb8-3cd72378da19",key:"[傲慢]",keyCode:"/:,@o"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c7b25d7c-abc6-4547-803b-19dc45fd5be2",gifUrl:"https://pic01-10001430.image.myqcloud.com/2428fcba-8a72-40d6-b847-6f7034f7e9d5",key:"[饥饿]",keyCode:"/::g"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c6e9be34-b576-477d-a757-7d5593019552",gifUrl:"https://pic01-10001430.image.myqcloud.com/45cddb56-4a94-4cfb-aea3-02ea14fd5093",key:"[困]",keyCode:"/:|-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/015bfb53-443a-4b5c-82f6-960b9d0acedd",gifUrl:"https://pic01-10001430.image.myqcloud.com/1455635c-6cb0-470c-ae27-6602f76af048",key:"[惊恐]",keyCode:"/::!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d2569652-651e-4f8a-8052-d8f471af1a4d",gifUrl:"https://pic01-10001430.image.myqcloud.com/c90c340f-39ab-4d34-a301-8aed680e79dd",key:"[流汗]",keyCode:"/::L"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f447a5-555d-49c0-b04d-7da098e372f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/e2bf7e8a-3218-44e7-a42e-b18c4fd32411",key:"[憨笑]",keyCode:"/::>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f139cf5-49f7-4bfa-9ab9-d6f23782684e",gifUrl:"https://pic01-10001430.image.myqcloud.com/ee4249c0-d355-40d0-9c68-1187e88e68d8",key:"[悠闲]",keyCode:"/::,@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/688b20ba-ce01-4369-934f-2062a5b57643",gifUrl:"https://pic01-10001430.image.myqcloud.com/386a5629-aec9-4840-a2cb-dfb8bdbf237d",key:"[奋斗]",keyCode:"/:,@f"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e05cd4b5-e5cb-4374-80d9-8c09702ce7f5",gifUrl:"https://pic01-10001430.image.myqcloud.com/95d3c7be-356b-4573-8aa8-45724618a527",key:"[咒骂]",keyCode:"/::-S"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f11e215-9e39-476b-a77b-e994cc703edc",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa622e45-63eb-4fe3-aa27-cca7dc7db07b",key:"[疑问]",keyCode:"/:?"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/de50c8c0-a797-4bb7-b2ef-ddb4a6b48085",gifUrl:"https://pic01-10001430.image.myqcloud.com/067378c9-04d4-470c-a125-1c3fcfa298e3",key:"[嘘]",keyCode:"/:,@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2e55af63-2591-49b9-9565-85269a308a97",gifUrl:"https://pic01-10001430.image.myqcloud.com/484cc9ea-89b4-4af1-8134-8ba9fdcabeb3",key:"[晕]",keyCode:"/:,@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/057a6ff4-2403-424a-aaa4-5ece64336a37",gifUrl:"https://pic01-10001430.image.myqcloud.com/6d21c607-d709-45a5-a8d6-dd74bcdf587f",key:"[疯了]",keyCode:"/::8"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7d5e19d4-334b-441a-a964-285d8826c6d8",gifUrl:"https://pic01-10001430.image.myqcloud.com/204c089c-d737-447e-a912-a3da4f92c8fe",key:"[哀]",keyCode:"/:,@!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9b14cbe9-749a-4081-b697-8a456db53cd3",gifUrl:"https://pic01-10001430.image.myqcloud.com/94019082-ea4b-4ada-a7a3-0e1d02143c62",key:"[骷髅]",keyCode:"/:!!!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3518ddf0-8cc3-4b4f-9391-7aa67a95f6b6",gifUrl:"https://pic01-10001430.image.myqcloud.com/7eeb8cc7-6e6b-4e02-b289-4f462677831d",key:"[敲打]",keyCode:"/:xx"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/b3086372-dd16-45d1-a51e-343befece0f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e1c155c-3517-4c5f-9831-98a564d94bd2",key:"[再见]",keyCode:"/:bye"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/31350af3-00e6-40c1-91fd-c36660614f7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/39804b4f-e56d-475d-b398-121d65e96d01",key:"[擦汗]",keyCode:"/:wipe"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fc09bdc6-8467-40c3-b20d-822980f14824",gifUrl:"https://pic01-10001430.image.myqcloud.com/89a3283e-fef9-4ccd-a238-400139a786a9",key:"[抠鼻]",keyCode:"/:dig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7a1d3d7f-ae4e-495d-8c4d-75378069a52c",gifUrl:"https://pic01-10001430.image.myqcloud.com/8cd3aee8-56aa-4862-b253-701212e838f6",key:"[鼓掌]",keyCode:"/:handclap"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/434911d7-c142-4115-8ca2-0765f78e41d1",gifUrl:"https://pic01-10001430.image.myqcloud.com/2ead6c2f-23c7-4e5f-b8e3-161153989ede",key:"[糗大了]",keyCode:"/:&-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa3532b6-99df-4984-9e76-013b4e106501",gifUrl:"https://pic01-10001430.image.myqcloud.com/9c3ec470-8055-413c-8839-465f75dd9f71",key:"[坏笑]",keyCode:"/:B-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/887fbd28-9f81-42ce-addf-639a94a8edb2",gifUrl:"https://pic01-10001430.image.myqcloud.com/897a5d5b-7c89-40bf-94ed-dc1c91c317ee",key:"[左哼哼]",keyCode:"/:<@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2267b046-ac56-4fc2-b592-351a1e6ffa28",gifUrl:"https://pic01-10001430.image.myqcloud.com/da25a587-d314-4b44-98eb-2f9220b6a093",key:"[右哼哼]",keyCode:"/:@>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3d1a9b50-3262-4d3e-a554-33871189023d",gifUrl:"https://pic01-10001430.image.myqcloud.com/f5323432-50d2-4393-853c-f8998a956da6",key:"[哈欠]",keyCode:"/::-O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/edd78bd3-ffbb-4268-8af8-85377535cc0a",gifUrl:"https://pic01-10001430.image.myqcloud.com/ca62a0b0-2d01-4ca4-b958-8417f0906a89",key:"[鄙视]",keyCode:"/:>-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d1f49343-0f9b-485a-b6b7-4d9b43020fab",gifUrl:"https://pic01-10001430.image.myqcloud.com/e43b2e20-8802-44d4-afa0-7eb6b7126c38",key:"[委屈]",keyCode:"/:P-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e6532dd2-5734-41fc-862c-3fec91ecb7b7",gifUrl:"https://pic01-10001430.image.myqcloud.com/d3120d89-2df8-47ba-b894-84658dd3e617",key:"[快哭了]",keyCode:"/::'|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3799a3bb-94a4-4614-917c-07629f1a63ac",gifUrl:"https://pic01-10001430.image.myqcloud.com/17853d32-28fc-4565-8dab-44d7c95d4819",key:"[阴险]",keyCode:"/:X-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4f84b1d5-235a-41a6-9927-96e29232ab61",gifUrl:"https://pic01-10001430.image.myqcloud.com/a034d0c1-eafd-434c-a3e9-6042081536f9",key:"[亲亲]",keyCode:"/::*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fb45c4ad-2813-4ec1-afb7-873ef95ea975",gifUrl:"https://pic01-10001430.image.myqcloud.com/660a65ee-66ff-4fa3-85fc-72149b938739",key:"[吓]",keyCode:"/:@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/abdb4f9e-8fec-4fab-98c4-a89711da5f6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/c8ef0424-21c9-4a25-a6be-c2233a6a85ba",key:"[可怜]",keyCode:"/:8*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6a0d843a-6870-409a-9bf2-40114628076e",gifUrl:"https://pic01-10001430.image.myqcloud.com/f80d75c4-8f07-459c-9c83-0cf016ddfcef",key:"[菜刀]",keyCode:"/:pd"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/140d13e9-1587-491c-afdc-2599a5ba72de",gifUrl:"https://pic01-10001430.image.myqcloud.com/08ec4424-86b8-4e46-bdce-3c93180a9cf9",key:"[西瓜]",keyCode:"/:<W>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d9974e8a-820e-4571-8fde-0fe21b725b7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8426b197-1a1b-4f5f-a446-e47b2a2bff09",key:"[啤酒]",keyCode:"/:beer"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4ff9ae58-e8df-4c9e-91ac-b91a6dc9096d",gifUrl:"https://pic01-10001430.image.myqcloud.com/2578648c-f29b-46d3-91de-b636c6014dcc",key:"[篮球]",keyCode:"/:basketb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa136900-c1f5-40f4-9130-1ddae518cb22",gifUrl:"https://pic01-10001430.image.myqcloud.com/3b7a5bec-a119-4a7f-ae8f-e962cfb658b5",key:"[乒乓]",keyCode:"/:oo"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4de4896d-a8b0-4cc6-921a-bb7a81788e68",gifUrl:"https://pic01-10001430.image.myqcloud.com/5f1af094-059d-48a3-b374-381818827596",key:"[咖啡]",keyCode:"/:coffee"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c61865c0-2fcf-44e9-bf62-3a5a606ca459",gifUrl:"https://pic01-10001430.image.myqcloud.com/71a2ebba-3160-4a96-9370-2294e325c3d6",key:"[饭]",keyCode:"/:eat"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2ffebcf6-48a8-4c26-8e67-dd6ea345407f",gifUrl:"https://pic01-10001430.image.myqcloud.com/7309bbc1-3f2e-4df1-b523-b95ad9e18e0f",key:"[猪头]",keyCode:"/:pig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/66dfc7b5-bebe-45d9-98f6-96d3a28214e8",gifUrl:"https://pic01-10001430.image.myqcloud.com/06673bd8-c7ca-4672-b7a3-569bb5768efc",key:"[玫瑰]",keyCode:"/:rose"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/86a99146-e83b-4132-b3fb-2864aaf8cfa4",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b6b8364-d6eb-4c27-99d8-4bd0930b3cda",key:"[凋谢]",keyCode:"/:fade"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/090ae661-b401-496c-bd1f-d475e20e1c36",gifUrl:"https://pic01-10001430.image.myqcloud.com/d42b19ce-943c-40df-8886-f1cc70281f5d",key:"[嘴唇]",keyCode:"/:showlove"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a8295101-ac8c-4b8b-b1b0-97c548ec7c8d",gifUrl:"https://pic01-10001430.image.myqcloud.com/579e7c8b-d538-4ac0-8b9b-5e0691c33c74",key:"[爱心]",keyCode:"/:heart"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4b42af75-7434-4e1b-a727-def403b3c018",gifUrl:"https://pic01-10001430.image.myqcloud.com/d8b6265f-2ca2-4227-8aa3-26cfee1e1d8f",key:"[心碎]",keyCode:"/:break"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2eaf27d5-0f8e-4716-9f0c-7af7fce62980",gifUrl:"https://pic01-10001430.image.myqcloud.com/f96201f2-32b8-462b-847a-22c49c3cf6df",key:"[蛋糕]",keyCode:"/:cake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef55a1bb-6177-4075-b8ae-326b967cd612",gifUrl:"https://pic01-10001430.image.myqcloud.com/f3e8ef24-0efa-4823-af8f-34604e832b94",key:"[闪电]",keyCode:"/:li"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8672c806-0ecd-45ec-a9cd-2af63c806344",gifUrl:"https://pic01-10001430.image.myqcloud.com/758a6b09-71e7-429b-9c2e-c744b8305610",key:"[炸弹]",keyCode:"/:bome"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0dfd4afd-f954-4de3-93da-ac6104a007a9",gifUrl:"https://pic01-10001430.image.myqcloud.com/d82af5eb-6fd5-48c8-9ba9-bf8b6ef7fe54",key:"[刀]",keyCode:"/:kn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/12524677-2787-4a7b-9e8a-2874c44864f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/dbb1e536-27bb-47ea-a57e-25c89ecb4c81",key:"[足球]",keyCode:"/:footb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d65a0c9d-d50f-4986-86f4-de5babceeb4f",gifUrl:"https://pic01-10001430.image.myqcloud.com/62a24697-7529-4dce-93ef-8d78ee2ef3d9",key:"[瓢虫]",keyCode:"/:ladybug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0c30bcc5-1ad8-4b33-8040-cf11b4c8cdb4",gifUrl:"https://pic01-10001430.image.myqcloud.com/4beffad5-d07f-465b-987e-62687178a609",key:"[便便]",keyCode:"/:shit"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/adb7224b-ddd7-4e51-9cc0-c9642c3ca827",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e124ec4-68d2-4129-ace6-b02b5a0a47dd",key:"[月亮]",keyCode:"/:moon"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/55a303ca-bcbf-42fb-99c5-d2a2aaa2c254",gifUrl:"https://pic01-10001430.image.myqcloud.com/191faab4-2c7d-4b6a-95e0-0cec831bdba8",key:"[太阳]",keyCode:"/:sun"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a84809d8-4553-4380-966b-17484ce317b8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ffbc4ada-d572-4f80-821a-ee1d232c0da4",key:"[礼物]",keyCode:"/:gift"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/70f21a3f-165e-46dd-bbd3-9523e72761ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/1344a463-f19a-4a5a-9e99-450bf32c2c6b",key:"[拥抱]",keyCode:"/:hug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a008b2e1-6d02-47f0-b477-c2b0e9f585f2",gifUrl:"https://pic01-10001430.image.myqcloud.com/b4cf425d-08fb-48a3-8383-e705d4ed990e",key:"[强]",keyCode:"/:strong"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/dd610773-3bc5-4bce-90a3-d5c7b7af1bd4",gifUrl:"https://pic01-10001430.image.myqcloud.com/bab6f0b3-94e1-4e94-b144-5161c5ee0799",key:"[弱]",keyCode:"/:weak"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4c027076-e5bb-492c-9cc7-39b58b50f720",gifUrl:"https://pic01-10001430.image.myqcloud.com/72076aef-4091-4b6a-a727-b3b433c64e7e",key:"[握手]",keyCode:"/:share"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",key:"[胜利]",keyCode:"/:v"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f6adac-c525-4b8e-817d-f79e8b595ad8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ab16d400-9bb0-493d-9973-5cf97f6f8ab2",key:"[抱拳]",keyCode:"/:@)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef165f66-cf6b-4588-81a6-e01a31679670",gifUrl:"https://pic01-10001430.image.myqcloud.com/1e701efe-b602-4570-a957-5ba12486a853",key:"[勾引]",keyCode:"/:jj"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c230a194-9f2f-4690-84ce-194aed18143b",gifUrl:"https://pic01-10001430.image.myqcloud.com/fb9d43d1-506d-4684-8fc2-62a9cd528feb",key:"[拳头]",keyCode:"/:@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4d963fc7-20c0-4942-b6f6-eb9282c509a6",gifUrl:"https://pic01-10001430.image.myqcloud.com/443b1f18-c10d-4803-9a1d-698075874fcf",key:"[差劲]",keyCode:"/:bad"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ac3fe192-103c-48f1-bd30-293d5f7551d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/8f0ce5ac-c0b6-4936-8091-953b13d1d091",key:"[爱你]",keyCode:"/:lvu"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/68d642b4-0573-4821-8c42-ecfdaf8ceeb9",gifUrl:"https://pic01-10001430.image.myqcloud.com/633fc189-ab89-4ee5-9325-01f7b6c2a3fe",key:"[NO]",keyCode:"/:no"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb1580b-e0b1-4fcf-a3d9-66b83346cc43",gifUrl:"https://pic01-10001430.image.myqcloud.com/a80685a2-4e41-461c-b67d-e2092c2ba068",key:"[OK]",keyCode:"/:ok"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1732e5d1-ab4b-4c63-9571-171feac408ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/a83394ea-9191-4eff-a3ca-84646ee748e4",key:"[爱情]",keyCode:"/:love"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f15cf2a7-89d8-48c5-bd63-0e550a240813",gifUrl:"https://pic01-10001430.image.myqcloud.com/b23f441c-2329-468b-a09a-e6a1d2cc38cf",key:"[飞吻]",keyCode:"/:<L>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7be4b8d5-6b2c-4c8c-9444-3e82057e6aca",gifUrl:"https://pic01-10001430.image.myqcloud.com/db11cfab-1be4-4279-b11a-18787247513d",key:"[跳跳]",keyCode:"/:jump"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a1147a2d-8fe4-4dac-b14b-4d144ce5e2f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/9e243eca-c1e3-4afa-a068-8260af2eb62b",key:"[发抖]",keyCode:"/:shake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/845e5982-a104-4ca7-be4c-ef176a360c25",gifUrl:"https://pic01-10001430.image.myqcloud.com/1695538d-744f-418b-9362-6eb052642163",key:"[怄火]",keyCode:"/:<O>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fd84d952-e6d0-498b-865c-4f9aaf570d81",gifUrl:"https://pic01-10001430.image.myqcloud.com/4ae21d0e-b019-4ab8-a607-8e43b8f24bf1",key:"[转圈]",keyCode:"/:circle"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/976e7ef5-4381-4f98-8a94-b1647c501357",gifUrl:"https://pic01-10001430.image.myqcloud.com/e63c5775-da40-480a-bf57-2fac6b88c372",key:"[磕头]",keyCode:"/:kotow"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/705e70c6-5524-4dc8-840b-ddf0a5558024",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa8c6f1d-3fe6-4ffe-b62b-bc6f6024a681",key:"[回头]",keyCode:"/:turn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/069837fd-9b7c-4dfe-9203-2cc747c083d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/64a70d02-8888-4c23-93fc-a94c63589ea8",key:"[跳绳]",keyCode:"/:skip"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ebeb6e1d-a159-4d11-9a41-e639c1b82203",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b12c653-0027-4c44-a9f2-d0bac2d405bf",key:"[投降]",keyCode:"/:oY"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2da0f4d4-37ed-43bd-ba44-0f3a65c2f46c",gifUrl:"https://pic01-10001430.image.myqcloud.com/21d5b626-e190-4a65-9c88-c4bfcb4261d7",key:"[激动]",keyCode:"/:#-0"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6d34badb-1972-4b3f-9d42-f054f365ed5a",gifUrl:"https://pic01-10001430.image.myqcloud.com/bc51d1d4-42de-442a-8e94-74ae0dd5abd0",key:"[乱舞]",keyCode:"/:hiphot"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4e35c97d-f497-4fa8-8cf4-bd6fd8d7f9ad",gifUrl:"https://pic01-10001430.image.myqcloud.com/6856fc16-279a-45cd-9ab3-9396d382f502",key:"[献吻]",keyCode:"/:kiss"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/209d7202-5972-445e-a0f6-336cbe8b0b9d",gifUrl:"https://pic01-10001430.image.myqcloud.com/fadeb841-e07c-47f7-b948-081eabb556b9",key:"[左太极]",keyCode:"/:<&"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f566cd87-b948-4929-bfcc-955385937095",gifUrl:"https://pic01-10001430.image.myqcloud.com/4b08fdfe-9ea8-420a-9eda-998b6ad2045f",key:"[右太极]",keyCode:"/:&>"}],b={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",materialContent:""},rules:{materialTitle:[{required:!0,message:"请输入文本标题",trigger:"blur"}],materialContent:[{required:!0,message:"请输入文本内容",trigger:"blur"}]},emojiList:h}},methods:{handleInput:function(e){this.ruleForm.materialContent=e.target.innerText},selectEmoji:function(e){this.ruleForm.materialContent=this.ruleForm.materialContent+e.key},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:1,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,materialContent:e.ruleForm.materialContent};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑文本":"新建文本",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"文本标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入文本标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"内容",prop:"materialContent"}},[a("div",{staticClass:"material-content"},[a("limit-textarea",{staticClass:"material-body",attrs:{inputWidth:440,inputValue:e.ruleForm.materialContent,holder:"请输入内容",getByType:"char",maxLength:600},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialContent",t)}}}),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"388",trigger:"click"}},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.emojiList,function(t,i){return a("li",{key:i+"emoji"},[a("img",{attrs:{src:t.gifUrl,alt:""},on:{click:function(a){e.selectEmoji(t)}}})])})),e._v(" "),a("img",{staticClass:"emoji-img cursor-pointer",attrs:{slot:"reference",src:"https://pic01-10001430.image.myqcloud.com/b0d3c14f-69e7-4753-8fbc-3bffcff9f8ce",alt:""},slot:"reference"})])],1)])],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var v=a("VU/8")(b,y,!1,function(e){a("fr9j")},"data-v-18983b31",null).exports,w=a("//Fk"),C=a.n(w),k={name:"single-upload",props:{videoSrc:{type:String,default:""},imgSrc:{type:String,default:""},field:{type:String,default:""},uploadLimit:{type:[Number,String],default:2},uploadType:{type:[Number,String],default:1}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:"",videoFlag:!1,fileType:1==this.uploadType||2==this.uploadType?"jpg":"mp4"}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage3-web/upload-file?fileType="+this.fileType,this.upUrl},handleAvatarSuccess:function(e,t,a){1==e.errorCode?(console.log(e),this.videoFlag=!1,3==this.uploadType?this.$emit("update:videoSrc",e.result.url):this.$emit("update:imgSrc",e.result.url)):c.a.errorMsg(e)},beforeAvatarUpload:function(e){console.log(e),this.fileType="image/jpeg"===e.type?"jpeg":"image/jpg"===e.type?"jpg":"image/png"===e.type?"png":"video/mp4"==e.type?"mp4":"";var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type,a="video/mp4"==e.type,i=e.size/1024/1024<this.uploadLimit;return 1!=this.uploadType&&2!=this.uploadType||t||this.$message.error("上传图片支持png、jpg、jpeg格式!"),1!=this.uploadType&&2!=this.uploadType||i||this.$message.error("上传图片大小不能超过 "+this.uploadLimit+"MB!"),3!=this.uploadType||a||this.$message.error("上传视频支持MP4格式!"),3!=this.uploadType||i||this.$message.error("上传视频大小不能超过 "+this.uploadLimit+"MB!"),3==this.uploadType?a&&i:t&&i&&new C.a(function(t,a){var i=new FileReader;i.onload=function(e){var a=new Image;a.onload=function(){this.width,this.height;t()},a.src=e.target.result},i.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single-upload-wrap"},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imgSrc?a("img",{staticClass:"avatar",attrs:{src:e.imgSrc},on:{mouseover:function(t){e.showImage(e.imgSrc)}}}):e._e(),e._v(" "),""!=e.videoSrc&&0==e.videoFlag?a("video",{staticClass:"avatar",attrs:{src:e.videoSrc}},[e._v("您的浏览器不支持视频播放")]):e._e(),e._v(" "),e.imgSrc||e.videoSrc?e._e():a("div",[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),e._v(" "),a("p",{staticClass:"font-12 color-606266"},[e._v(e._s(1==e.uploadType||2==e.uploadType?"上传图片":"上传视频"))])])]),e._v(" "),1==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张\n ")]):e._e(),e._v(" "),2==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB\n ")]):e._e(),e._v(" "),3==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效\n ")]):e._e()],1)},staticRenderFns:[]};var x=a("VU/8")(k,_,!1,function(e){a("jtl6")},"data-v-3f5bba1e",null).exports,S={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入图片标题",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传图片",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:2,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,imgUrl:e.ruleForm.imgUrl};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},T={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑图片":"新建图片",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"图片标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入图片标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"图片",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"1",imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var U=a("VU/8")(S,T,!1,function(e){a("09oy")},"data-v-17096584",null).exports,I={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",link:"",materialTitle:"",materialDesc:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入网页标题",trigger:"blur"}],link:[{required:!0,validator:function(e,t,a){""===t?a(new Error("请输入链接")):/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/.test(t)?a():a(new Error("请输入链接,正确格式:https://www.XXX.com!"))},trigger:"blur"}],materialDesc:[{required:!0,message:"请输入摘要",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传网页封面",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:3,link:e.ruleForm.link,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,imgUrl:e.ruleForm.imgUrl,materialDesc:e.ruleForm.materialDesc};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},q={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑网页":"新建网页",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"网页标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入网页标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"链接",prop:"link"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.link,holder:"请输入链接,格式需带https://www,或http://www",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"link",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"摘要",prop:"materialDesc"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialDesc,holder:"请输入网页摘要",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialDesc",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"封面",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"2",uploadLimit:1,imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var F=a("VU/8")(I,q,!1,function(e){a("ozRG")},"data-v-d57a4560",null).exports,D={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",link:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入视频标题",trigger:"blur"}],link:[{required:!0,message:"请上传视频",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传封面",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:4,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,link:e.ruleForm.link,imgUrl:e.ruleForm.imgUrl};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},$={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑视频":"新建视频",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"视频标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入视频标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"封面",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"2",uploadLimit:1,imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"视频",prop:"link"}},[a("single-upload",{attrs:{uploadType:"3",uploadLimit:10,videoSrc:e.ruleForm.link},on:{"update:videoSrc":function(t){e.$set(e.ruleForm,"link",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(D,$,!1,function(e){a("DMLr")},"data-v-bb3ff0d4",null).exports,j={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",link:""},rules:{materialTitle:[{required:!0,message:"请输入文件标题",trigger:"blur"}],link:[{required:!0,message:"请上传文件",trigger:"blur"}]},emojiList:h,fileType:".doc",fileDatas:[]}},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage3-web/upload-file?fileType="+this.fileType,this.upUrl},beforeFileUpload:function(e){var t=e.name.split("."),a=t[t.length-1],i=a.includes("pdf")||a.includes("doc")||a.includes("xls")||a.includes("ppt")||a.includes("zip")||a.includes("rar"),o=e.size/1024/1024<=20;return o||this.$message.error("文件大小超出20M,无法上传"),i?o&&i:(this.$message.error("仅支持word及excle,pdf,ppt,zip,rar格式"),!1)},handleRemove:function(e,t){},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},handleFileSuccess:function(e,t){this.ruleForm.link=e.result.url},handleFileChange:function(e,t){this.fileDatas=t},handleInput:function(e){this.ruleForm.materialContent=e.target.innerText},selectEmoji:function(e){this.ruleForm.materialContent=this.ruleForm.materialContent+e.key},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:5,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,link:e.ruleForm.link};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)),this.fileDatas=[{name:e.link.split("/")[5],url:e.link}])}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)),this.fileDatas=[{name:this.editRow.link.split("/")[5],url:this.editRow.link}])}},R={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑文件":"新建文件",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"文件标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入文件标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"文件",prop:"link"}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:e.uploadUrl(),"before-upload":e.beforeFileUpload,"on-success":e.handleFileSuccess,"on-change":e.handleFileChange,"on-remove":e.handleRemove,limit:1,"on-exceed":e.handleExceed,"file-list":e.fileDatas}},[a("el-button",{attrs:{type:"primary"}},[a("i",{staticClass:"el-icon-upload el-icon--right",staticStyle:{"font-size":"16px","padding-right":"5px"}}),e._v("上传")]),e._v(" "),a("div",{staticClass:"font-12 color-909399",attrs:{slot:"tip"},slot:"tip"},[e._v("普通文件,不大于20MB。支持word及excel,pdf,ppt,zip,rar格式")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var O=a("VU/8")(j,R,!1,function(e){a("uK/D")},"data-v-421ec9db",null).exports,z={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{textEdit:v}},P={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialContent))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("text-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var G=a("VU/8")(z,P,!1,function(e){a("aQaK")},"data-v-187e760e",null).exports,M={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{imageEdit:U}},E={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"40px",height:"40px"}},[a("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.imgUrl,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("image-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var L=a("VU/8")(M,E,!1,function(e){a("67Xm")},"data-v-53b74348",null).exports,V={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{webEdit:F}},B={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"封面"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"40px",height:"40px"}},[a("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.imgUrl,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"链接","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.link))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("web-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var A=a("VU/8")(V,B,!1,function(e){a("Rf/K")},"data-v-99f46518",null).exports,J={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{toOpenUrl:function(e){window.open(e.link)},closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{videoEdit:N}},H={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cursor-pointer",staticStyle:{width:"40px",height:"40px"},on:{click:function(a){e.toOpenUrl(t.row)}}},[a("video",{staticClass:"avatar",staticStyle:{width:"40px",height:"40px"},attrs:{src:t.row.link}},[e._v("您的浏览器不支持视频播放")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("video-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var W=a("VU/8")(J,H,!1,function(e){a("uB7K")},"data-v-fe92e140",null).exports,Z={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{toOpenFile:function(e){window.open(e.link)},closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前文本素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{fileEdit:O}},Y={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text-table-body"},[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),i("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex flex-pack-center cursor-pointer",staticStyle:{width:"40px",height:"40px",background:"#f5f7fa"},on:{click:function(a){e.toOpenFile(t.row)}}},[i("img",{staticStyle:{width:"23px"},attrs:{src:a("C2ZR"),alt:""}})])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),i("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?i("file-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var Q=a("VU/8")(Z,Y,!1,function(e){a("x/JH")},"data-v-6a61da7e",null).exports,K={props:{editRow:{type:Object,default:function(){return{}}},categoryParentId:{type:Object,default:function(){return""}}},components:{limitInput:i.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{categoryId:"",categoryName:"",categoryParentId:this.categoryParentId},rules:{categoryName:[{required:!0,message:"请输入分组名称",trigger:"blur"}]}}},methods:{toCancel:function(){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryParentId:e.ruleForm.categoryParentId||"0",categoryId:e.ruleForm.categoryId,categoryName:e.ruleForm.categoryName};Object(r.d)(e.ruleForm.categoryId?"/haoban-manage3-web/category-edit":"/haoban-manage3-web/mateial-add-category",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitGroup")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},X={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.categoryId?"编辑分组":"新增分组",visible:e.dialogVisible,width:"485px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"分组名称",prop:"categoryName"}},[a("limitInput",{attrs:{inputWidth:300,inputValue:e.ruleForm.categoryName,holder:"请输入分组名称",getByType:"word",maxLength:8},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"categoryName",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var ee=a("VU/8")(K,X,!1,function(e){a("+wU6")},"data-v-1524c354",null).exports,te={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",currentCategoryId:"-1",groupData:[],categoryParentId:"",addShow:!1,editGroupRow:{},expandArr:[],tableData:[],currentPage:1,pageSize:20,total:0,activeName:"1",multOpt:"",multData:[],textShow:!1,imageShow:!1,webShow:!1,videoShow:!1,fileShow:!1,multTrans:!1,materialIds:[]}},methods:{changeOpt:function(e){var t=this;if(!t.multData.length)return l.a.showmsg("请先选择素材","warning"),t.multOpt="",!1;1==e?t.$confirm("确定删除选中的素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postMultDel()}).catch(function(){}):(t.materialIds=t.multData.map(function(e){return e.materialId}).join(","),t.multTrans=!0)},postMultDel:function(){var e=this,t={materialIds:e.multData.map(function(e){return e.materialId}).join(",")};Object(r.d)("/haoban-manage3-web/material-del",t).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),e.multOpt="",void e.refreshTable();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelText:function(e){this.multData=e},addText:function(){this.textShow=!0},closeText:function(){this.textShow=!1,this.imageShow=!1,this.webShow=!1,this.videoShow=!1,this.fileShow=!1},submitText:function(){this.textShow=!1,this.imageShow=!1,this.webShow=!1,this.videoShow=!1,this.fileShow=!1,this.refreshTable()},addImage:function(){this.imageShow=!0},addWeb:function(){this.webShow=!0},addVideo:function(){this.videoShow=!0},addFile:function(){this.fileShow=!0},refreshTable:function(){this.currentPage=1,this.getTableList()},handleClick:function(){this.currentPage=1,this.getTableList()},selectGroup:function(e){e.expand=!e.expand,this.currentCategoryId=e.categoryId,e.expand?this.expandArr.push(e.categoryId):this.expandArr.splice(this.expandArr.indexOf(e.categoryId),1),this.currentPage=1,this.getTableList(),this.$forceUpdate()},selectNoGroup:function(){this.currentCategoryId="-1",this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearSearch:function(){this.currentPage=1,this.getTableList()},addGroup:function(){this.addShow=!0,this.categoryParentId="",this.editGroupRow={}},closeGroup:function(){this.multTrans=!1,this.addShow=!1,this.multOpt=""},submitGroup:function(){this.multTrans=!1,this.addShow=!1,this.getGroupData(),this.currentPage=1,this.getTableList(),this.multOpt=""},addChildGroup:function(e){this.editGroupRow={},this.categoryParentId=e.categoryId,this.addShow=!0},editGroup:function(e){this.addShow=!0,this.categoryParentId="",this.editGroupRow=e},delGroup:function(e){var t=this;t.$confirm("是否删除当前选中的分组?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData(e)}).catch(function(){})},postDelData:function(e){var t=this,a={categoryId:e.categoryId};Object(r.a)("/haoban-manage3-web/category-del",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getGroupData();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.categoryId==e.categoryParentId});return a.length>0?t.children=a:t.children=[],0==t.categoryParentId});return console.log("tree:",t),t},getGroupData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.a)("/haoban-manage3-web/category-list",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length&&(a.result.forEach(function(e){e.expand=!!t.expandArr.includes(e.categoryId)}),t.groupData=t.treeData(a.result)||[])}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,keyword:t.searchInput,categoryId:t.currentCategoryId,materialType:t.activeName,pageNum:t.currentPage,pageSize:t.pageSize};Object(r.a)("/haoban-manage3-web/material-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab",3),document.documentElement.style.backgroundColor="#f0f2f5",this.getGroupData(),this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{groupDialog:ee,selectGroup:d,textTable:G,imageTable:L,webTable:A,videoTable:W,fileTable:Q,textEdit:v,imageEdit:U,webEdit:F,videoEdit:N,fileEdit:O}},ae={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"material-set-wrap "},[a("div",{staticClass:" border-box"},[a("div",{staticClass:"material-top border-box"},[a("el-input",{staticStyle:{width:"394px"},attrs:{placeholder:"请输入素材名称",clearable:""},on:{clear:e.clearSearch},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:"material-body flex"},[a("div",{staticClass:"material-left"},[a("div",{staticClass:"material-left-add m-t-10 text-center"},[a("div",{staticClass:"add-group font-14 color-909399 cursor-pointer line-h-32",on:{click:e.addGroup}},[a("span",{staticClass:"el-icon-plus"}),a("span",{staticClass:"p-l-5"},[e._v("新建分组")])])]),e._v(" "),a("div",{staticClass:"group-body"},[a("div",{class:["no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer","-1"==e.currentCategoryId?"current-group":""],on:{click:e.selectNoGroup}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right"],staticStyle:{color:"transparent"}}),e._v("未分组")]),e._v(" "),a("ul",{staticClass:"group-ul padding-lr-12"},[e._l(e.groupData,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.addChildGroup(t)}}},[e._v("新增子分组")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),t.children.length?e._e():a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.addChildGroup(t)}}},[e._v("新增子分组")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),t.children.length?e._e():a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1)])]})],2):e._e()])]})],2):e._e()])]})],2)])]),e._v(" "),a("div",{staticClass:"material-right"},[a("div",{staticClass:"material-table"},[a("div",{staticClass:"add-btn-wrap"},[1==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addText}},[e._v("新建文本")]):e._e(),2==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addImage}},[e._v("新建图片")]):e._e(),3==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addWeb}},[e._v("新建网页")]):e._e(),4==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addVideo}},[e._v("新建视频")]):e._e(),5==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFile}},[e._v("新建文件")]):e._e(),a("el-select",{staticClass:"m-l-10",staticStyle:{"vertical-align":"top"},attrs:{placeholder:"批量操作"},on:{change:e.changeOpt},model:{value:e.multOpt,callback:function(t){e.multOpt=t},expression:"multOpt"}},[a("el-option",{attrs:{label:"批量删除",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"批量转移",value:"2"}})],1)],1),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"1"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconwenzi p-r-5"}),e._v("文本")]),e._v(" "),a("text-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,textTableData:e.tableData,categoryId:e.currentCategoryId},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"图片",name:"2"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont icontupian p-r-5 "}),e._v("图片")]),e._v(" "),a("image-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"网页",name:"3"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont icondaima p-r-5 "}),e._v("网页")]),e._v(" "),a("web-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"视频",name:"4"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconshipin p-r-5 "}),e._v("视频")]),e._v(" "),a("video-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"文件",name:"5"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconwenjian p-r-5 "}),e._v("文件")]),e._v(" "),a("file-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1)],1)],1)])])]),e._v(" "),e.addShow?a("group-dialog",{attrs:{categoryParentId:e.categoryParentId,editRow:e.editGroupRow},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e(),e._v(" "),e.textShow?a("text-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.imageShow?a("image-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.webShow?a("web-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.videoShow?a("video-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.fileShow?a("file-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.multTrans?a("select-group",{attrs:{materialIds:e.materialIds},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e()],1)},staticRenderFns:[]};var ie=a("VU/8")(te,ae,!1,function(e){a("01az")},"data-v-0cf63f04",null);t.default=ie.exports},uB7K:function(e,t){},"uK/D":function(e,t){},"x/JH":function(e,t){}});
\ No newline at end of file
webpackJsonp([41],{I5zg:function(t,e){},cD4x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),i=a.n(s),o=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的补发卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.repairId)}).catch(function(){})},delCardList:function(t){var e=this,a={repairId:t};Object(u.d)("/haoban-app-customer-web/inner/delete-repair",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardPut?repairId="+e.repairId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardPut")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={wxEnterpriseId:(a=t).wxEnterpriseId,pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/inner/page-repair",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.result||[],void(a.total=e.result.totalCount);o.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","3"),this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增补发")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券组合名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardCombineName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text"},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)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[this._v("内购券投放是针对卡券策略中没有下发的内购券,针对员工进行补发")])])}]};var f=a("VU/8")(d,p,!1,function(t){a("I5zg")},"data-v-699b44ac",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([40],{I5zg:function(t,e){},cD4x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),i=a.n(s),o=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的补发卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.repairId)}).catch(function(){})},delCardList:function(t){var e=this,a={repairId:t};Object(u.d)("/haoban-app-customer-web/inner/delete-repair",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardPut?repairId="+e.repairId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardPut")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return i()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={wxEnterpriseId:(a=t).wxEnterpriseId,pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/inner/page-repair",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.result||[],void(a.total=e.result.totalCount);o.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","3"),this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增补发")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券组合名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardCombineName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text"},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)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[this._v("内购券投放是针对卡券策略中没有下发的内购券,针对员工进行补发")])])}]};var f=a("VU/8")(d,p,!1,function(t){a("I5zg")},"data-v-699b44ac",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([42],{Yz8m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.d)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("eoRX")},"data-v-68967570",null);t.default=m.exports},eoRX:function(e,t){}});
\ No newline at end of file
webpackJsonp([41],{Yz8m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.d)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.a)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo.total);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("eoRX")},"data-v-68967570",null);t.default=m.exports},eoRX:function(e,t){}});
\ No newline at end of file
webpackJsonp([43],{KA2f:function(t,e){},SBUJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},changeTable:function(t){this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)});var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(e){if(!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=(t.tableData[0]?t.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={ecmId:e.$route.query.ecmId,search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},initDataRange:function(){var t=new Date,e=t.getTime()-7776e6,a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),i=n<10?"0"+n:n,s=new Date(e),r=s.getFullYear(),l=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[r+"-"+(l<10?"0"+l:l)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){var t=this;t.$emit("showTab","12"),t.conditionObj.dateRange=t.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,t.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("KA2f")},"data-v-6871c0a6",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([42],{KA2f:function(t,e){},SBUJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"2",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},changeTable:function(t){this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)});var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(e){if(!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=(t.tableData[0]?t.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId+"&ecmId="+this.$route.query.ecmId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={ecmId:e.$route.query.ecmId,search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},initDataRange:function(){var t=new Date,e=t.getTime()-7776e6,a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),i=n<10?"0"+n:n,s=new Date(e),r=s.getFullYear(),l=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[r+"-"+(l<10?"0"+l:l)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){var t=this;t.$emit("showTab","12"),t.conditionObj.dateRange=t.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,t.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap task-view-detail"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("KA2f")},"data-v-6871c0a6",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([43],{GltL:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("GltL")},"data-v-6831fda6",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([73],{FMQe:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),s=a("P9l9"),r=a("PI0u"),l=a("3E4D"),c=a("Ch4/"),u={props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{searchInput:""},wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的任务?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.sessionTaskId)}).catch(function(){})},delCardList:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,sessionTaskId:t};Object(s.d)("/haoban-app-tel-task-three-web/delete-session-task",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},hidePop:function(t){t.visible=!1},handleDelete:function(t){var e=this,a={helpId:t.helpId};Object(s.d)("/haoban-app-tel-task-three-web/del-help",a).then(function(t){1===t.data.errorCode?(e.$message.success(t.data.message),e.currentPage=1,e.getTableList()):e.$message.warning(t.data.message)}).catch(function(t){})},checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!i()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a={search:e.conditionObj.searchInput||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(s.d)("/haoban-app-tel-task-three-web/batch-del-store-task-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toNewSession:function(t,e){this.$router.push("newSession")},getTableList:function(t){var e=this,a={search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,wxEnterpriseId:e.wxEnterpriseId};Object(s.a)("/haoban-app-tel-task-three-web/session-task-list",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;c.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(){var t=this;document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,t.$emit("showTab","3"),this.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入任务名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toNewSession}},[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"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"任务标题",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.taskTitle))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.taskContent))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",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)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",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.lastTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastTime)))])]}}])}),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.createName))]}}])}),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.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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,d,!1,function(t){a("ztld")},"data-v-04efbccd",null);e.default=h.exports},ztld:function(t,e){}});
\ No newline at end of file
webpackJsonp([44],{FMQe:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),i=a.n(n),o=a("LRn8"),s=a("P9l9"),r=a("PI0u"),l=a("3E4D"),c=a("Ch4/"),u={props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{searchInput:""},wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的任务?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.sessionTaskId)}).catch(function(){})},delCardList:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,sessionTaskId:t};Object(s.d)("/haoban-app-tel-task-three-web/delete-session-task",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},hidePop:function(t){t.visible=!1},handleDelete:function(t){var e=this,a={helpId:t.helpId};Object(s.d)("/haoban-app-tel-task-three-web/del-help",a).then(function(t){1===t.data.errorCode?(e.$message.success(t.data.message),e.currentPage=1,e.getTableList()):e.$message.warning(t.data.message)}).catch(function(t){})},checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(r.a)(function(t,e){this.currentPage=1,this.getTableList()},500),handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!i()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a={search:e.conditionObj.searchInput||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(s.d)("/haoban-app-tel-task-three-web/batch-del-store-task-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toNewSession:function(t,e){this.$router.push("newSession")},getTableList:function(t){var e=this,a={search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,wxEnterpriseId:e.wxEnterpriseId};Object(s.a)("/haoban-app-tel-task-three-web/session-task-list",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;c.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(){var t=this;document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,t.$emit("showTab","3"),this.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:o.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入任务名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"primary"},on:{click:t.toNewSession}},[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"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{label:"任务标题",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.taskTitle))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.taskContent))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",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)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",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.lastTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastTime)))])]}}])}),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.createName))]}}])}),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.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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,d,!1,function(t){a("a3ha")},"data-v-666e3707",null);e.default=h.exports},a3ha:function(t,e){}});
\ No newline at end of file
webpackJsonp([45],{To6z:function(t,e){},"m+x7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)});var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(e){if(!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=(t.tableData[0]?t.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},initDataRange:function(){var t=new Date,e=t.getTime()-7776e6,a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),i=n<10?"0"+n:n,s=new Date(e),r=s.getFullYear(),l=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[r+"-"+(l<10?"0"+l:l)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){var t=this;t.conditionObj.dateRange=t.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,this.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("To6z")},"data-v-65414662",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([45],{"+I/x":function(t,e){},zYBJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("P9l9"),n=s("Ch4/"),o={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[]}},methods:{changeToggle:function(t){t.expand=!t.expand},getData:function(t){var e=this,s={wxEnterpriseId:e.wxEnterpriseId};Object(a.a)("/haoban-manage3-web/admin-list",s).then(function(t){var s=t.data;if(1==s.errorCode)return s.result&&s.result.length&&s.result.forEach(function(t){t.expand=!1}),void(e.roleList=s.result||[]);n.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab",2),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"daily-set-wrap "},[s("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),s("div",{staticClass:"admin-table-body m-t-20"},[t._m(1),t._v(" "),s("div",{staticClass:"admin-role-body"},[t._l(t.roleList,function(e,a){return[s("div",{key:a+"role"},[s("div",{staticClass:"admin-role-name line-50"},[s("el-row",[s("el-col",{attrs:{span:24}},[s("div",{staticClass:"grid-content cursor-pointer",on:{click:function(s){t.changeToggle(e)}}},[s("span",{class:["iconfont cursor-pointer font-14 color-606266 p-l-30",e.expand?"iconjian":"iconjia"],staticStyle:{"font-size":"14px"}}),s("span",{staticClass:"font-14 color-606266 p-l-40"},[t._v(t._s(e.roleName))])])])],1)],1),t._v(" "),e.expand?s("div",[s("el-row",{staticClass:"bg-ebecf0"},[s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th p-l-85"},[t._v("姓名")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("手机号")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("部门")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("操作")])])],1),t._v(" "),s("div",{staticClass:"admin-role-user"},t._l(e.roleUser,function(e,a){return s("el-row",{key:a,staticClass:"line-50 border-set"},[s("el-col",{staticClass:"line-one",attrs:{span:6}},[s("div",{staticClass:"grid-content p-l-85 hide-border"},[t._v(t._s(e.userName||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s(e.userPhone||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s(e.departmentName||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s("--"))])])],1)}))],1):t._e()])]})],2)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"admin-tip-body"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"admin-thead bg-ebecf0"},[e("div",{staticClass:"admin-th p-l-85 font-14 color-303133"},[this._v("角色")])])}]};var i=s("VU/8")(o,r,!1,function(t){s("+I/x")},"data-v-5cc2273b",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([36],{"5G5U":function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"编辑补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("5G5U")},"data-v-7596b878",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([46],{"5fQO":function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"编辑补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("5fQO")},"data-v-61d4618e",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([47],{ag6q:function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),o=e("Z8ln"),c=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:""}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?c.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/storeMonthTask"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:""}]:"/salerMonthDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth},{name:"导购月指标详情",path:""}]:"/companyDaySet"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"},{name:"门店月指标",path:"storeMonthTask?yearMonth="+this.$route.query.yearMonth},{name:"商户日权重",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"指标管理",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var d=e("VU/8")(s,h,!1,function(t){e("ag6q")},"data-v-61b6d194",null);a.default=d.exports}});
\ No newline at end of file
webpackJsonp([46],{Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),o=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(o.d)(n,a).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(o.d)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("doVp")},"data-v-546a1ac1",null);e.default=c.exports},doVp:function(t,e){}});
\ No newline at end of file
webpackJsonp([48],{Z3Aa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),o=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1},activeId:"1"}},methods:{submit:Object(n.a)(function(t){this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId},n=void 0;"showFlag"!=t&&(a[t]=e.myCustomData[t]?1:0,n="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===t&&(n="/haoban-app-customer-web/customer/save-customer-setting")),Object(o.d)(n,a).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAllowGuide:function(t){this.myCustomData.allowGuideMobile=t,this.myCustomData.allowGuideMessage=t,this.myCustomData.allowGuideOnlineChat=t},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getCustomerSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(o.d)("/haoban-app-customer-web/customer/find-customer-setting",a).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(e.myCustomData.searchFlag=!!a.result.searchFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","13"),this.getCustomerSet(this.brandId)},components:{}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-checkbox",{model:{value:t.myCustomData.searchFlag,callback:function(e){t.$set(t.myCustomData,"searchFlag",e)},expression:"myCustomData.searchFlag"}},[t._v("允许全品牌搜索")]),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submit("searchFlag")}}},[t._v("保 存")])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(i,u,!1,function(t){a("doVp")},"data-v-546a1ac1",null);e.default=c.exports},doVp:function(t,e){}});
\ No newline at end of file
webpackJsonp([47],{O3gZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("gqXI")},"data-v-530ad580",null);e.default=a.exports},gqXI:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{O3gZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("gqXI")},"data-v-530ad580",null);e.default=a.exports},gqXI:function(t,e){}});
\ No newline at end of file
webpackJsonp([5],{"/oSI":function(e,t){},"0Lwl":function(e,t){},"61Rz":function(e,t){},"6vKc":function(e,t){},AAYH:function(e,t){},C2ZR:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjAwIDIwMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6IzNENkFFODt9DQoJLnN0MXtmaWxsOiM4NkFERjI7fQ0KCS5zdDJ7ZmlsbDojRTFFREZGO30NCjwvc3R5bGU+DQo8Zz4NCgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjguNiwxSDEyMGw2MCw1OS43djEzMC42YzAsNC43LTMuOCw4LjUtOC42LDguNUgyOC42Yy00LjcsMC04LjYtMy44LTguNi04LjVWOS41QzIwLDQuOCwyMy44LDEsMjguNiwxeiIvPg0KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMjAsMWw2MCw2MGgtNDYuN0MxMjYsNjEsMTIwLDU1LDEyMCw0Ny43VjF6Ii8+DQoJPHBhdGggY2xhc3M9InN0MiIgZD0iTTQ2LjcsMTAwLjRoMTA2Ljd2MjBINDYuN1YxMDAuNHogTTQ2LjcsMTQwLjRoMTA2Ljd2MjBINDYuN1YxNDAuNHoiLz4NCjwvZz4NCjwvc3ZnPg0K"},"F+zQ":function(e,t){},GAg7:function(e,t){},I8yJ:function(e,t){},KLSU:function(e,t){},Sggi:function(e,t){},UwuL:function(e,t){},b4ba:function(e,t){},dkup:function(e,t){},"q+Sm":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("l46T"),o=a("PI0u"),r=a("P9l9"),l=a("3E4D"),c=a("Ch4/"),n={props:{materialIds:{type:Array,default:function(){return[]}}},components:{limitInput:i.a},data:function(){return{width:"347px",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",dialogVisible:!0,groupData:[],ruleForm:{categoryId:""},rules:{categoryId:[{required:!0,message:"请选择分组名称",trigger:"change"}]},categoryName:"",currentCategoryId:"",expandArr:[]}},methods:{toCancel:function(){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.ruleForm.categoryId,materialIds:e.materialIds};Object(r.d)("/haoban-manage3-web/material-batch",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitGroup")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},selectGroup:function(e){e.expand=!e.expand,this.ruleForm.categoryId=e.categoryId,this.currentCategoryId=e.categoryId,this.categoryName=e.categoryName,e.expand?this.expandArr.push(e.categoryId):this.expandArr.splice(this.expandArr.indexOf(e.categoryId),1)},selectNoGroup:function(){this.ruleForm.categoryId="-1",this.currentCategoryId="-1",this.categoryName="未分组"},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.categoryId==e.categoryParentId});return a.length>0?t.children=a:t.children=[],0==t.categoryParentId});return console.log("tree:",t),t},getGroupData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.d)("/haoban-manage3-web/category-list",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length&&(a.result.forEach(function(e){e.expand=!!t.expandArr.includes(e.categoryId)}),t.groupData=t.treeData(a.result)||[])}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.getGroupData()}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量操作-移至分组",visible:e.dialogVisible,width:"485px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"分组",prop:"categoryId"}},[a("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom",trigger:"click"}},[a("div",{staticClass:"select-tree-wrap"},[a("div",{staticClass:"group-body"},[a("div",{class:["no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer","-1"==e.currentCategoryId?"current-group":""],on:{click:e.selectNoGroup}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right"],staticStyle:{color:"transparent"}}),e._v("未分组")]),e._v(" "),a("ul",{staticClass:"group-ul padding-lr-12"},[e._l(e.groupData,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])]),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])]),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))])])])]})],2):e._e()])]})],2):e._e()])]})],2)])]),e._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block ",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",style:{width:e.width}},[e.ruleForm.categoryId?e._e():a("span",{staticClass:"font-14 color-c0c4cc",staticStyle:{display:"inline-block","line-height":"32px",color:"#c0c4cc"}},[e._v("请选择")]),e._v("\n "+e._s(e.categoryName)+"\n ")])])])])],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var d=a("VU/8")(n,s,!1,function(e){a("dkup")},"data-v-06b81c7a",null).exports,u=a("mvHQ"),m=a.n(u),p=a("fZjL"),g=a.n(p),f=a("Kkt8"),h=[{imgUrl:"https://pic01-10001430.image.myqcloud.com/b0d3c14f-69e7-4753-8fbc-3bffcff9f8ce",gifUrl:"https://pic01-10001430.image.myqcloud.com/204994d9-48d8-4bfe-bfbd-e8168d444965",key:"[微笑]",keyCode:"/::)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5f7c1eb-358e-47fe-a43c-7ae1ba5e95fd",gifUrl:"https://pic01-10001430.image.myqcloud.com/87bbdce9-82e4-4fb0-8d6c-b867ccf7e058",key:"[撇嘴]",keyCode:"/::~"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/32201a50-e937-4594-bfb2-68dc674d29a1",gifUrl:"https://pic01-10001430.image.myqcloud.com/df55c677-7adb-48f2-bf65-6cf592eccf80",key:"[色]",keyCode:"/::B"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/674f2eea-85fd-4735-9ae5-416aef938857",gifUrl:"https://pic01-10001430.image.myqcloud.com/c44c6034-c191-4526-ac80-c5f7f0fbcf5f",key:"[发呆]",keyCode:"/::|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a52e4031-51e6-47c4-9a7d-4aa36902e868",gifUrl:"https://pic01-10001430.image.myqcloud.com/684dcfac-a95f-49fc-8d9d-8d3627f4a26e",key:"[得意]",keyCode:"/:8-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d5d3c311-30a7-46d4-bd6b-e09e9e270eb8",gifUrl:"https://pic01-10001430.image.myqcloud.com/3f17d82f-beb6-4e0f-be8b-72c571558438",key:"[流泪]",keyCode:"/::<"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/014fb90d-db81-4a6d-b89d-6edc21825c57",gifUrl:"https://pic01-10001430.image.myqcloud.com/6ce13f11-6c26-4e5a-b3b1-f47151b61e30",key:"[害羞]",keyCode:"/::$"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fecaa108-f9ee-4871-88f8-04fe9dd006c4",gifUrl:"https://pic01-10001430.image.myqcloud.com/0fe29af4-bddc-46c2-a063-f8d8e4414d13",key:"[闭嘴]",keyCode:"/::X"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/61373735-d6a4-42ec-beb8-f2ad3a4204ae",gifUrl:"https://pic01-10001430.image.myqcloud.com/9fa3a5f6-3814-46df-a85c-e27711b41c45",key:"[睡]",keyCode:"/::Z"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/5e18d40c-00fe-4fa8-94bb-fc5879b601db",gifUrl:"https://pic01-10001430.image.myqcloud.com/87d28ce0-72d2-44ab-a5b9-899ca92737c3",key:"[大哭]",keyCode:"/::'("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9956bdde-87e2-4377-a77d-2d7a6510dcca",gifUrl:"https://pic01-10001430.image.myqcloud.com/28d4443a-ae59-459b-8fa0-c5d236a84208",key:"[尴尬]",keyCode:"/::-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a36b8868-369d-4022-be38-e71970b4b0ed",gifUrl:"https://pic01-10001430.image.myqcloud.com/a3db89ce-6b1a-44e9-a276-8284dfba6fec",key:"[发怒]",keyCode:"/::@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2b46750b-e399-41fa-88da-cef0705adb68",gifUrl:"https://pic01-10001430.image.myqcloud.com/a340191e-00f0-4aed-9c4b-5084c9d48a3f",key:"[调皮]",keyCode:"/::P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3d140d2-3490-4d12-a16f-5786c50e92e6",gifUrl:"https://pic01-10001430.image.myqcloud.com/3741398d-ac5e-4ca4-aff2-7072d4f3e809",key:"[呲牙]",keyCode:"/::D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d54d58f6-a89a-4a70-9e7a-834ba728e5cb",gifUrl:"https://pic01-10001430.image.myqcloud.com/62bb88d4-a38b-4d0a-943b-854e35f4216d",key:"[惊讶]",keyCode:"/::O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb0633a-3610-48dc-a4da-79b74d91c5a3",gifUrl:"https://pic01-10001430.image.myqcloud.com/a9f355d2-89d5-41c3-96c9-53e6c1893ce8",key:"[难过]",keyCode:"/::("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7ae8e3ea-864f-4864-ba73-fbc731fe5e43",gifUrl:"https://pic01-10001430.image.myqcloud.com/75533bd8-4d96-4d14-a28e-18f01141fd53",key:"[酷]",keyCode:"/::+"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1ad076a0-a052-4cc5-bd1b-d46bdaf25928",gifUrl:"https://pic01-10001430.image.myqcloud.com/b551bd90-8f9c-49d4-a73f-05852da72e4e",key:"[冷汗]",keyCode:"/:--b"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/756eb481-d965-4b09-abe6-5ea2f7d460db",gifUrl:"https://pic01-10001430.image.myqcloud.com/9a9f6be6-6c9f-496e-8f40-cdd56670b1cb",key:"[抓狂]",keyCode:"/::Q"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/56107e91-303c-4d4c-bbc2-6a6ace586777",gifUrl:"https://pic01-10001430.image.myqcloud.com/70b702b8-b1f2-4071-8fa1-01b4bac8c8cb",key:"[吐]",keyCode:"/::T"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/363eb785-69a9-4f18-8e45-cb069bb12c4c",gifUrl:"https://pic01-10001430.image.myqcloud.com/fc61ddbf-a962-4043-a5cc-cb7a8a4edbcc",key:"[偷笑]",keyCode:"/:,@P"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/888ee4dc-0274-4c3d-bb84-e3ba943ff86f",gifUrl:"https://pic01-10001430.image.myqcloud.com/223e7c88-5ffa-4392-a4b1-e5785bf59e19",key:"[愉快]",keyCode:"/:,@-D"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a5a391da-659b-48ab-8007-a8888f98ec66",gifUrl:"https://pic01-10001430.image.myqcloud.com/8fb34158-562b-4710-ae93-47b64174bdbf",key:"[白眼]",keyCode:"/::d"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f3c70943-f4a2-4e15-a9fb-f8f840878a6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8a0a3dcb-ea02-4c9d-9fb8-3cd72378da19",key:"[傲慢]",keyCode:"/:,@o"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c7b25d7c-abc6-4547-803b-19dc45fd5be2",gifUrl:"https://pic01-10001430.image.myqcloud.com/2428fcba-8a72-40d6-b847-6f7034f7e9d5",key:"[饥饿]",keyCode:"/::g"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c6e9be34-b576-477d-a757-7d5593019552",gifUrl:"https://pic01-10001430.image.myqcloud.com/45cddb56-4a94-4cfb-aea3-02ea14fd5093",key:"[困]",keyCode:"/:|-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/015bfb53-443a-4b5c-82f6-960b9d0acedd",gifUrl:"https://pic01-10001430.image.myqcloud.com/1455635c-6cb0-470c-ae27-6602f76af048",key:"[惊恐]",keyCode:"/::!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d2569652-651e-4f8a-8052-d8f471af1a4d",gifUrl:"https://pic01-10001430.image.myqcloud.com/c90c340f-39ab-4d34-a301-8aed680e79dd",key:"[流汗]",keyCode:"/::L"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f447a5-555d-49c0-b04d-7da098e372f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/e2bf7e8a-3218-44e7-a42e-b18c4fd32411",key:"[憨笑]",keyCode:"/::>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f139cf5-49f7-4bfa-9ab9-d6f23782684e",gifUrl:"https://pic01-10001430.image.myqcloud.com/ee4249c0-d355-40d0-9c68-1187e88e68d8",key:"[悠闲]",keyCode:"/::,@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/688b20ba-ce01-4369-934f-2062a5b57643",gifUrl:"https://pic01-10001430.image.myqcloud.com/386a5629-aec9-4840-a2cb-dfb8bdbf237d",key:"[奋斗]",keyCode:"/:,@f"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e05cd4b5-e5cb-4374-80d9-8c09702ce7f5",gifUrl:"https://pic01-10001430.image.myqcloud.com/95d3c7be-356b-4573-8aa8-45724618a527",key:"[咒骂]",keyCode:"/::-S"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8f11e215-9e39-476b-a77b-e994cc703edc",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa622e45-63eb-4fe3-aa27-cca7dc7db07b",key:"[疑问]",keyCode:"/:?"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/de50c8c0-a797-4bb7-b2ef-ddb4a6b48085",gifUrl:"https://pic01-10001430.image.myqcloud.com/067378c9-04d4-470c-a125-1c3fcfa298e3",key:"[嘘]",keyCode:"/:,@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2e55af63-2591-49b9-9565-85269a308a97",gifUrl:"https://pic01-10001430.image.myqcloud.com/484cc9ea-89b4-4af1-8134-8ba9fdcabeb3",key:"[晕]",keyCode:"/:,@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/057a6ff4-2403-424a-aaa4-5ece64336a37",gifUrl:"https://pic01-10001430.image.myqcloud.com/6d21c607-d709-45a5-a8d6-dd74bcdf587f",key:"[疯了]",keyCode:"/::8"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7d5e19d4-334b-441a-a964-285d8826c6d8",gifUrl:"https://pic01-10001430.image.myqcloud.com/204c089c-d737-447e-a912-a3da4f92c8fe",key:"[哀]",keyCode:"/:,@!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/9b14cbe9-749a-4081-b697-8a456db53cd3",gifUrl:"https://pic01-10001430.image.myqcloud.com/94019082-ea4b-4ada-a7a3-0e1d02143c62",key:"[骷髅]",keyCode:"/:!!!"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3518ddf0-8cc3-4b4f-9391-7aa67a95f6b6",gifUrl:"https://pic01-10001430.image.myqcloud.com/7eeb8cc7-6e6b-4e02-b289-4f462677831d",key:"[敲打]",keyCode:"/:xx"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/b3086372-dd16-45d1-a51e-343befece0f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e1c155c-3517-4c5f-9831-98a564d94bd2",key:"[再见]",keyCode:"/:bye"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/31350af3-00e6-40c1-91fd-c36660614f7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/39804b4f-e56d-475d-b398-121d65e96d01",key:"[擦汗]",keyCode:"/:wipe"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fc09bdc6-8467-40c3-b20d-822980f14824",gifUrl:"https://pic01-10001430.image.myqcloud.com/89a3283e-fef9-4ccd-a238-400139a786a9",key:"[抠鼻]",keyCode:"/:dig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7a1d3d7f-ae4e-495d-8c4d-75378069a52c",gifUrl:"https://pic01-10001430.image.myqcloud.com/8cd3aee8-56aa-4862-b253-701212e838f6",key:"[鼓掌]",keyCode:"/:handclap"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/434911d7-c142-4115-8ca2-0765f78e41d1",gifUrl:"https://pic01-10001430.image.myqcloud.com/2ead6c2f-23c7-4e5f-b8e3-161153989ede",key:"[糗大了]",keyCode:"/:&-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa3532b6-99df-4984-9e76-013b4e106501",gifUrl:"https://pic01-10001430.image.myqcloud.com/9c3ec470-8055-413c-8839-465f75dd9f71",key:"[坏笑]",keyCode:"/:B-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/887fbd28-9f81-42ce-addf-639a94a8edb2",gifUrl:"https://pic01-10001430.image.myqcloud.com/897a5d5b-7c89-40bf-94ed-dc1c91c317ee",key:"[左哼哼]",keyCode:"/:<@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2267b046-ac56-4fc2-b592-351a1e6ffa28",gifUrl:"https://pic01-10001430.image.myqcloud.com/da25a587-d314-4b44-98eb-2f9220b6a093",key:"[右哼哼]",keyCode:"/:@>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3d1a9b50-3262-4d3e-a554-33871189023d",gifUrl:"https://pic01-10001430.image.myqcloud.com/f5323432-50d2-4393-853c-f8998a956da6",key:"[哈欠]",keyCode:"/::-O"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/edd78bd3-ffbb-4268-8af8-85377535cc0a",gifUrl:"https://pic01-10001430.image.myqcloud.com/ca62a0b0-2d01-4ca4-b958-8417f0906a89",key:"[鄙视]",keyCode:"/:>-|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d1f49343-0f9b-485a-b6b7-4d9b43020fab",gifUrl:"https://pic01-10001430.image.myqcloud.com/e43b2e20-8802-44d4-afa0-7eb6b7126c38",key:"[委屈]",keyCode:"/:P-("},{imgUrl:"https://pic01-10001430.image.myqcloud.com/e6532dd2-5734-41fc-862c-3fec91ecb7b7",gifUrl:"https://pic01-10001430.image.myqcloud.com/d3120d89-2df8-47ba-b894-84658dd3e617",key:"[快哭了]",keyCode:"/::'|"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/3799a3bb-94a4-4614-917c-07629f1a63ac",gifUrl:"https://pic01-10001430.image.myqcloud.com/17853d32-28fc-4565-8dab-44d7c95d4819",key:"[阴险]",keyCode:"/:X-)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4f84b1d5-235a-41a6-9927-96e29232ab61",gifUrl:"https://pic01-10001430.image.myqcloud.com/a034d0c1-eafd-434c-a3e9-6042081536f9",key:"[亲亲]",keyCode:"/::*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fb45c4ad-2813-4ec1-afb7-873ef95ea975",gifUrl:"https://pic01-10001430.image.myqcloud.com/660a65ee-66ff-4fa3-85fc-72149b938739",key:"[吓]",keyCode:"/:@x"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/abdb4f9e-8fec-4fab-98c4-a89711da5f6a",gifUrl:"https://pic01-10001430.image.myqcloud.com/c8ef0424-21c9-4a25-a6be-c2233a6a85ba",key:"[可怜]",keyCode:"/:8*"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6a0d843a-6870-409a-9bf2-40114628076e",gifUrl:"https://pic01-10001430.image.myqcloud.com/f80d75c4-8f07-459c-9c83-0cf016ddfcef",key:"[菜刀]",keyCode:"/:pd"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/140d13e9-1587-491c-afdc-2599a5ba72de",gifUrl:"https://pic01-10001430.image.myqcloud.com/08ec4424-86b8-4e46-bdce-3c93180a9cf9",key:"[西瓜]",keyCode:"/:<W>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d9974e8a-820e-4571-8fde-0fe21b725b7a",gifUrl:"https://pic01-10001430.image.myqcloud.com/8426b197-1a1b-4f5f-a446-e47b2a2bff09",key:"[啤酒]",keyCode:"/:beer"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4ff9ae58-e8df-4c9e-91ac-b91a6dc9096d",gifUrl:"https://pic01-10001430.image.myqcloud.com/2578648c-f29b-46d3-91de-b636c6014dcc",key:"[篮球]",keyCode:"/:basketb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/aa136900-c1f5-40f4-9130-1ddae518cb22",gifUrl:"https://pic01-10001430.image.myqcloud.com/3b7a5bec-a119-4a7f-ae8f-e962cfb658b5",key:"[乒乓]",keyCode:"/:oo"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4de4896d-a8b0-4cc6-921a-bb7a81788e68",gifUrl:"https://pic01-10001430.image.myqcloud.com/5f1af094-059d-48a3-b374-381818827596",key:"[咖啡]",keyCode:"/:coffee"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c61865c0-2fcf-44e9-bf62-3a5a606ca459",gifUrl:"https://pic01-10001430.image.myqcloud.com/71a2ebba-3160-4a96-9370-2294e325c3d6",key:"[饭]",keyCode:"/:eat"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2ffebcf6-48a8-4c26-8e67-dd6ea345407f",gifUrl:"https://pic01-10001430.image.myqcloud.com/7309bbc1-3f2e-4df1-b523-b95ad9e18e0f",key:"[猪头]",keyCode:"/:pig"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/66dfc7b5-bebe-45d9-98f6-96d3a28214e8",gifUrl:"https://pic01-10001430.image.myqcloud.com/06673bd8-c7ca-4672-b7a3-569bb5768efc",key:"[玫瑰]",keyCode:"/:rose"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/86a99146-e83b-4132-b3fb-2864aaf8cfa4",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b6b8364-d6eb-4c27-99d8-4bd0930b3cda",key:"[凋谢]",keyCode:"/:fade"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/090ae661-b401-496c-bd1f-d475e20e1c36",gifUrl:"https://pic01-10001430.image.myqcloud.com/d42b19ce-943c-40df-8886-f1cc70281f5d",key:"[嘴唇]",keyCode:"/:showlove"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a8295101-ac8c-4b8b-b1b0-97c548ec7c8d",gifUrl:"https://pic01-10001430.image.myqcloud.com/579e7c8b-d538-4ac0-8b9b-5e0691c33c74",key:"[爱心]",keyCode:"/:heart"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4b42af75-7434-4e1b-a727-def403b3c018",gifUrl:"https://pic01-10001430.image.myqcloud.com/d8b6265f-2ca2-4227-8aa3-26cfee1e1d8f",key:"[心碎]",keyCode:"/:break"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2eaf27d5-0f8e-4716-9f0c-7af7fce62980",gifUrl:"https://pic01-10001430.image.myqcloud.com/f96201f2-32b8-462b-847a-22c49c3cf6df",key:"[蛋糕]",keyCode:"/:cake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef55a1bb-6177-4075-b8ae-326b967cd612",gifUrl:"https://pic01-10001430.image.myqcloud.com/f3e8ef24-0efa-4823-af8f-34604e832b94",key:"[闪电]",keyCode:"/:li"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/8672c806-0ecd-45ec-a9cd-2af63c806344",gifUrl:"https://pic01-10001430.image.myqcloud.com/758a6b09-71e7-429b-9c2e-c744b8305610",key:"[炸弹]",keyCode:"/:bome"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0dfd4afd-f954-4de3-93da-ac6104a007a9",gifUrl:"https://pic01-10001430.image.myqcloud.com/d82af5eb-6fd5-48c8-9ba9-bf8b6ef7fe54",key:"[刀]",keyCode:"/:kn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/12524677-2787-4a7b-9e8a-2874c44864f6",gifUrl:"https://pic01-10001430.image.myqcloud.com/dbb1e536-27bb-47ea-a57e-25c89ecb4c81",key:"[足球]",keyCode:"/:footb"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/d65a0c9d-d50f-4986-86f4-de5babceeb4f",gifUrl:"https://pic01-10001430.image.myqcloud.com/62a24697-7529-4dce-93ef-8d78ee2ef3d9",key:"[瓢虫]",keyCode:"/:ladybug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/0c30bcc5-1ad8-4b33-8040-cf11b4c8cdb4",gifUrl:"https://pic01-10001430.image.myqcloud.com/4beffad5-d07f-465b-987e-62687178a609",key:"[便便]",keyCode:"/:shit"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/adb7224b-ddd7-4e51-9cc0-c9642c3ca827",gifUrl:"https://pic01-10001430.image.myqcloud.com/3e124ec4-68d2-4129-ace6-b02b5a0a47dd",key:"[月亮]",keyCode:"/:moon"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/55a303ca-bcbf-42fb-99c5-d2a2aaa2c254",gifUrl:"https://pic01-10001430.image.myqcloud.com/191faab4-2c7d-4b6a-95e0-0cec831bdba8",key:"[太阳]",keyCode:"/:sun"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a84809d8-4553-4380-966b-17484ce317b8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ffbc4ada-d572-4f80-821a-ee1d232c0da4",key:"[礼物]",keyCode:"/:gift"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/70f21a3f-165e-46dd-bbd3-9523e72761ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/1344a463-f19a-4a5a-9e99-450bf32c2c6b",key:"[拥抱]",keyCode:"/:hug"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a008b2e1-6d02-47f0-b477-c2b0e9f585f2",gifUrl:"https://pic01-10001430.image.myqcloud.com/b4cf425d-08fb-48a3-8383-e705d4ed990e",key:"[强]",keyCode:"/:strong"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/dd610773-3bc5-4bce-90a3-d5c7b7af1bd4",gifUrl:"https://pic01-10001430.image.myqcloud.com/bab6f0b3-94e1-4e94-b144-5161c5ee0799",key:"[弱]",keyCode:"/:weak"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4c027076-e5bb-492c-9cc7-39b58b50f720",gifUrl:"https://pic01-10001430.image.myqcloud.com/72076aef-4091-4b6a-a727-b3b433c64e7e",key:"[握手]",keyCode:"/:share"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/fe962ed9-d581-4bcf-bf9e-8672e45353ef",key:"[胜利]",keyCode:"/:v"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/27f6adac-c525-4b8e-817d-f79e8b595ad8",gifUrl:"https://pic01-10001430.image.myqcloud.com/ab16d400-9bb0-493d-9973-5cf97f6f8ab2",key:"[抱拳]",keyCode:"/:@)"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ef165f66-cf6b-4588-81a6-e01a31679670",gifUrl:"https://pic01-10001430.image.myqcloud.com/1e701efe-b602-4570-a957-5ba12486a853",key:"[勾引]",keyCode:"/:jj"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/c230a194-9f2f-4690-84ce-194aed18143b",gifUrl:"https://pic01-10001430.image.myqcloud.com/fb9d43d1-506d-4684-8fc2-62a9cd528feb",key:"[拳头]",keyCode:"/:@@"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4d963fc7-20c0-4942-b6f6-eb9282c509a6",gifUrl:"https://pic01-10001430.image.myqcloud.com/443b1f18-c10d-4803-9a1d-698075874fcf",key:"[差劲]",keyCode:"/:bad"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ac3fe192-103c-48f1-bd30-293d5f7551d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/8f0ce5ac-c0b6-4936-8091-953b13d1d091",key:"[爱你]",keyCode:"/:lvu"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/68d642b4-0573-4821-8c42-ecfdaf8ceeb9",gifUrl:"https://pic01-10001430.image.myqcloud.com/633fc189-ab89-4ee5-9325-01f7b6c2a3fe",key:"[NO]",keyCode:"/:no"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ceb1580b-e0b1-4fcf-a3d9-66b83346cc43",gifUrl:"https://pic01-10001430.image.myqcloud.com/a80685a2-4e41-461c-b67d-e2092c2ba068",key:"[OK]",keyCode:"/:ok"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/1732e5d1-ab4b-4c63-9571-171feac408ef",gifUrl:"https://pic01-10001430.image.myqcloud.com/a83394ea-9191-4eff-a3ca-84646ee748e4",key:"[爱情]",keyCode:"/:love"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f15cf2a7-89d8-48c5-bd63-0e550a240813",gifUrl:"https://pic01-10001430.image.myqcloud.com/b23f441c-2329-468b-a09a-e6a1d2cc38cf",key:"[飞吻]",keyCode:"/:<L>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/7be4b8d5-6b2c-4c8c-9444-3e82057e6aca",gifUrl:"https://pic01-10001430.image.myqcloud.com/db11cfab-1be4-4279-b11a-18787247513d",key:"[跳跳]",keyCode:"/:jump"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/a1147a2d-8fe4-4dac-b14b-4d144ce5e2f7",gifUrl:"https://pic01-10001430.image.myqcloud.com/9e243eca-c1e3-4afa-a068-8260af2eb62b",key:"[发抖]",keyCode:"/:shake"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/845e5982-a104-4ca7-be4c-ef176a360c25",gifUrl:"https://pic01-10001430.image.myqcloud.com/1695538d-744f-418b-9362-6eb052642163",key:"[怄火]",keyCode:"/:<O>"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/fd84d952-e6d0-498b-865c-4f9aaf570d81",gifUrl:"https://pic01-10001430.image.myqcloud.com/4ae21d0e-b019-4ab8-a607-8e43b8f24bf1",key:"[转圈]",keyCode:"/:circle"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/976e7ef5-4381-4f98-8a94-b1647c501357",gifUrl:"https://pic01-10001430.image.myqcloud.com/e63c5775-da40-480a-bf57-2fac6b88c372",key:"[磕头]",keyCode:"/:kotow"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/705e70c6-5524-4dc8-840b-ddf0a5558024",gifUrl:"https://pic01-10001430.image.myqcloud.com/fa8c6f1d-3fe6-4ffe-b62b-bc6f6024a681",key:"[回头]",keyCode:"/:turn"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/069837fd-9b7c-4dfe-9203-2cc747c083d0",gifUrl:"https://pic01-10001430.image.myqcloud.com/64a70d02-8888-4c23-93fc-a94c63589ea8",key:"[跳绳]",keyCode:"/:skip"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/ebeb6e1d-a159-4d11-9a41-e639c1b82203",gifUrl:"https://pic01-10001430.image.myqcloud.com/6b12c653-0027-4c44-a9f2-d0bac2d405bf",key:"[投降]",keyCode:"/:oY"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/2da0f4d4-37ed-43bd-ba44-0f3a65c2f46c",gifUrl:"https://pic01-10001430.image.myqcloud.com/21d5b626-e190-4a65-9c88-c4bfcb4261d7",key:"[激动]",keyCode:"/:#-0"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/6d34badb-1972-4b3f-9d42-f054f365ed5a",gifUrl:"https://pic01-10001430.image.myqcloud.com/bc51d1d4-42de-442a-8e94-74ae0dd5abd0",key:"[乱舞]",keyCode:"/:hiphot"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/4e35c97d-f497-4fa8-8cf4-bd6fd8d7f9ad",gifUrl:"https://pic01-10001430.image.myqcloud.com/6856fc16-279a-45cd-9ab3-9396d382f502",key:"[献吻]",keyCode:"/:kiss"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/209d7202-5972-445e-a0f6-336cbe8b0b9d",gifUrl:"https://pic01-10001430.image.myqcloud.com/fadeb841-e07c-47f7-b948-081eabb556b9",key:"[左太极]",keyCode:"/:<&"},{imgUrl:"https://pic01-10001430.image.myqcloud.com/f566cd87-b948-4929-bfcc-955385937095",gifUrl:"https://pic01-10001430.image.myqcloud.com/4b08fdfe-9ea8-420a-9eda-998b6ad2045f",key:"[右太极]",keyCode:"/:&>"}],b={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",materialContent:""},rules:{materialTitle:[{required:!0,message:"请输入文本标题",trigger:"blur"}],materialContent:[{required:!0,message:"请输入文本内容",trigger:"blur"}]},emojiList:h}},methods:{handleInput:function(e){this.ruleForm.materialContent=e.target.innerText},selectEmoji:function(e){this.ruleForm.materialContent=this.ruleForm.materialContent+e.key},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:1,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,materialContent:e.ruleForm.materialContent};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑文本":"新建文本",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"文本标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入文本标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"内容",prop:"materialContent"}},[a("div",{staticClass:"material-content"},[a("limit-textarea",{staticClass:"material-body",attrs:{inputWidth:440,inputValue:e.ruleForm.materialContent,holder:"请输入内容",getByType:"char",maxLength:1e3},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialContent",t)}}}),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"388",trigger:"click"}},[a("ul",{staticClass:"flex flex-wrap"},e._l(e.emojiList,function(t,i){return a("li",{key:i+"emoji"},[a("img",{attrs:{src:t.gifUrl,alt:""},on:{click:function(a){e.selectEmoji(t)}}})])})),e._v(" "),a("img",{staticClass:"emoji-img cursor-pointer",attrs:{slot:"reference",src:"https://pic01-10001430.image.myqcloud.com/b0d3c14f-69e7-4753-8fbc-3bffcff9f8ce",alt:""},slot:"reference"})])],1)])],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var v=a("VU/8")(b,y,!1,function(e){a("GAg7")},"data-v-96978834",null).exports,w=a("//Fk"),C=a.n(w),k={name:"single-upload",props:{videoSrc:{type:String,default:""},imgSrc:{type:String,default:""},field:{type:String,default:""},uploadLimit:{type:[Number,String],default:2},uploadType:{type:[Number,String],default:1}},data:function(){return{projectName:"",imgShowFlag:!1,imgUrl:"",videoFlag:!1,fileType:1==this.uploadType||2==this.uploadType?"jpg":"mp4"}},beforeMount:function(){var e=window.location.origin;-1!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage3-web/upload-file?fileType="+this.fileType,this.upUrl},handleAvatarSuccess:function(e,t,a){1==e.errorCode?(console.log(e),this.videoFlag=!1,3==this.uploadType?this.$emit("update:videoSrc",e.result.url):this.$emit("update:imgSrc",e.result.url)):c.a.errorMsg(e)},beforeAvatarUpload:function(e){console.log(e),this.fileType="image/jpeg"===e.type?"jpeg":"image/jpg"===e.type?"jpg":"image/png"===e.type?"png":"video/mp4"==e.type?"mp4":"";var t="image/jpeg"===e.type||"image/jpg"===e.type||"image/png"===e.type,a="video/mp4"==e.type,i=e.size/1024/1024<this.uploadLimit;return 1!=this.uploadType&&2!=this.uploadType||t||this.$message.error("上传图片支持png、jpg、jpeg格式!"),1!=this.uploadType&&2!=this.uploadType||i||this.$message.error("上传图片大小不能超过 "+this.uploadLimit+"MB!"),3!=this.uploadType||a||this.$message.error("上传视频支持MP4格式!"),3!=this.uploadType||i||this.$message.error("上传视频大小不能超过 "+this.uploadLimit+"MB!"),3==this.uploadType?a&&i:t&&i&&new C.a(function(t,a){var i=new FileReader;i.onload=function(e){var a=new Image;a.onload=function(){this.width,this.height;t()},a.src=e.target.result},i.readAsDataURL(e)})},showImage:function(e){if(!e||""==e)return!1;this.imgShowFlag=!0,this.imgUrl=e},hideImage:function(e){this.imgShowFlag=e}}},_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single-upload-wrap"},[a("el-upload",{staticClass:"avatar-uploader",attrs:{action:e.uploadUrl(),"show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imgSrc?a("img",{staticClass:"avatar",attrs:{src:e.imgSrc},on:{mouseover:function(t){e.showImage(e.imgSrc)}}}):e._e(),e._v(" "),""!=e.videoSrc&&0==e.videoFlag?a("video",{staticClass:"avatar",attrs:{src:e.videoSrc}},[e._v("您的浏览器不支持视频播放")]):e._e(),e._v(" "),e.imgSrc||e.videoSrc?e._e():a("div",[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),e._v(" "),a("p",{staticClass:"font-12 color-606266"},[e._v(e._s(1==e.uploadType||2==e.uploadType?"上传图片":"上传视频"))])])]),e._v(" "),1==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 图片支持png、jpg、jpeg格式,大小不超过2M,可上传1张\n ")]):e._e(),e._v(" "),2==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 建议尺寸:160×160;支持jpg、jpeg、png格式,图片大小不超过1MB\n ")]):e._e(),e._v(" "),3==e.uploadType?a("p",{staticClass:"upload-tip color-909399 font-12"},[e._v("\n 视频支持MP4格式,大小不超过10M,上传企业微信后3天内有效\n ")]):e._e()],1)},staticRenderFns:[]};var x=a("VU/8")(k,_,!1,function(e){a("0Lwl")},"data-v-51d864ba",null).exports,S={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入图片标题",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传图片",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:2,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,imgUrl:e.ruleForm.imgUrl};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},T={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑图片":"新建图片",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"图片标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入图片标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"图片",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"1",imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var U=a("VU/8")(S,T,!1,function(e){a("UwuL")},"data-v-1b09f0ee",null).exports,I={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",link:"",materialTitle:"",materialDesc:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入网页标题",trigger:"blur"}],link:[{required:!0,validator:function(e,t,a){""===t?a(new Error("请输入链接")):/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/.test(t)?a():a(new Error("请输入链接,正确格式:https://www.XXX.com!"))},trigger:"blur"}],materialDesc:[{required:!0,message:"请输入摘要",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传网页封面",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:3,link:e.ruleForm.link,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,imgUrl:e.ruleForm.imgUrl,materialDesc:e.ruleForm.materialDesc};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},q={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑网页":"新建网页",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"网页标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入网页标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"链接",prop:"link"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.link,holder:"请输入链接,格式需带https://www,或http://www",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"link",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"摘要",prop:"materialDesc"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialDesc,holder:"请输入网页摘要",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialDesc",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"封面",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"2",uploadLimit:1,imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var F=a("VU/8")(I,q,!1,function(e){a("/oSI")},"data-v-160d6489",null).exports,D={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:f.a,singleUpload:x},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",link:"",imgUrl:""},rules:{materialTitle:[{required:!0,message:"请输入视频标题",trigger:"blur"}],link:[{required:!0,message:"请上传视频",trigger:"blur"}],imgUrl:[{required:!0,message:"请上传封面",trigger:"blur"}]},emojiList:h}},methods:{toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:4,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,link:e.ruleForm.link,imgUrl:e.ruleForm.imgUrl};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},$={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑视频":"新建视频",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"视频标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入视频标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"封面",prop:"imgUrl"}},[a("single-upload",{attrs:{uploadType:"2",uploadLimit:1,imgSrc:e.ruleForm.imgUrl},on:{"update:imgSrc":function(t){e.$set(e.ruleForm,"imgUrl",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"视频",prop:"link"}},[a("single-upload",{attrs:{uploadType:"3",uploadLimit:10,videoSrc:e.ruleForm.link},on:{"update:videoSrc":function(t){e.$set(e.ruleForm,"link",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(D,$,!1,function(e){a("6vKc")},"data-v-78cf93bb",null).exports,j={props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},components:{limitInput:i.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{materialId:"",materialTitle:"",link:""},rules:{materialTitle:[{required:!0,message:"请输入文件标题",trigger:"blur"}],link:[{required:!0,message:"请上传文件",trigger:"blur"}]},emojiList:h,fileType:".doc",fileDatas:[]}},methods:{uploadUrl:function(){var e=window.location.origin,t=void 0;return t="-1"!=e.indexOf("localhost")?"http://www.gicdev.com":e,this.upUrl=t+"/haoban-manage3-web/upload-file?fileType="+this.fileType,this.upUrl},beforeFileUpload:function(e){var t=e.name.split("."),a=t[t.length-1],i=a.includes("pdf")||a.includes("doc")||a.includes("xls")||a.includes("ppt")||a.includes("zip")||a.includes("rar"),o=e.size/1024/1024<=20;return o||this.$message.error("文件大小超出20M,无法上传"),i?o&&i:(this.$message.error("仅支持word及excle,pdf,ppt,zip,rar格式"),!1)},handleRemove:function(e,t){},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},handleFileSuccess:function(e,t){this.ruleForm.link=e.result.url},handleFileChange:function(e,t){this.fileDatas=t},handleInput:function(e){this.ruleForm.materialContent=e.target.innerText},selectEmoji:function(e){this.ruleForm.materialContent=this.ruleForm.materialContent+e.key},toCancel:function(){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeText"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryId:e.categoryId,materialType:5,materialId:e.ruleForm.materialId,materialTitle:e.ruleForm.materialTitle,link:e.ruleForm.link};Object(r.d)(e.ruleForm.materialId?"/haoban-manage3-web/material-edit":"/haoban-manage3-web/material-add",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitText")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)),this.fileDatas=[{name:e.link.split("/")[5],url:e.link}])}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)),this.fileDatas=[{name:this.editRow.link.split("/")[5],url:this.editRow.link}])}},R={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.materialId?"编辑文件":"新建文件",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"文件标题",prop:"materialTitle"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.ruleForm.materialTitle,holder:"请输入文件标题",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"materialTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"文件",prop:"link"}},[a("el-upload",{staticClass:"upload-demo",attrs:{action:e.uploadUrl(),"before-upload":e.beforeFileUpload,"on-success":e.handleFileSuccess,"on-change":e.handleFileChange,"on-remove":e.handleRemove,limit:1,"on-exceed":e.handleExceed,"file-list":e.fileDatas}},[a("el-button",{attrs:{type:"primary"}},[a("i",{staticClass:"el-icon-upload el-icon--right",staticStyle:{"font-size":"16px","padding-right":"5px"}}),e._v("上传")]),e._v(" "),a("div",{staticClass:"font-12 color-909399",attrs:{slot:"tip"},slot:"tip"},[e._v("普通文件,不大于20MB。支持word及excel,pdf,ppt,zip,rar格式")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var O=a("VU/8")(j,R,!1,function(e){a("AAYH")},"data-v-4ceb4676",null).exports,z={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{textEdit:v}},P={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialContent))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("text-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var G=a("VU/8")(z,P,!1,function(e){a("b4ba")},"data-v-21a00454",null).exports,M={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{imageEdit:U}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"40px",height:"40px"}},[a("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.imgUrl,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("image-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var E=a("VU/8")(M,L,!1,function(e){a("seTx")},"data-v-7d4a33c4",null).exports,V={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{webEdit:F}},B={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"封面"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"40px",height:"40px"}},[a("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.row.imgUrl,alt:""}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"链接","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.link))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("web-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var A=a("VU/8")(V,B,!1,function(e){a("I8yJ")},"data-v-640572e1",null).exports,J={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{toOpenUrl:function(e){window.open(e.link)},closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{videoEdit:N}},H={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"text-table-body"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"cursor-pointer",staticStyle:{width:"40px",height:"40px"},on:{click:function(a){e.toOpenUrl(t.row)}}},[a("video",{staticClass:"avatar",staticStyle:{width:"40px",height:"40px"},attrs:{src:t.row.link}},[e._v("您的浏览器不支持视频播放")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?a("video-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var W=a("VU/8")(J,H,!1,function(e){a("F+zQ")},"data-v-3c9171e3",null).exports,Z={props:{brandId:{type:String,default:function(){return""}},categoryId:{type:String,default:function(){return""}},textTableData:{type:[Array,Object],default:function(){return[]}},currentPage:{type:[String,Number],default:function(){return 1}},pageSize:{type:[String,Number],default:function(){return 20}},total:{type:[String,Number],default:function(){return 0}}},data:function(){return{tableData:[],multipleSelection:[],textShow:!1,editRow:{}}},computed:{},methods:{toOpenFile:function(e){window.open(e.link)},closeText:function(){this.textShow=!1,this.editRow={}},submitText:function(){this.textShow=!1,this.editRow={},this.$emit("refreshTable")},toEdit:function(e,t){this.textShow=!0,this.editRow=t},toDel:function(e,t){var a=this;a.$confirm("确定删除当前文本素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={materialIds:t.materialId};Object(r.d)("/haoban-manage3-web/material-del",i).then(function(e){var t=e.data;if(1==t.errorCode)return l.a.showmsg("删除成功","success"),void a.$emit("refreshTable");c.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handleSelectionChange:function(e){this.multipleSelection=e,this.$emit("handleSelectionChange",e)},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!g()(e).length)return!1;this.postMultDel(e)},handleSizeChange:function(e){this.$emit("handleSizeChange",e)},handleCurrentChange:function(e){this.$emit("handleCurrentChange",e)}},watch:{textTableData:function(e,t){e.length?this.tableData=JSON.parse(m()(e)):this.tableData=[]}},mounted:function(){this.activeBrand=this.brandId,this.textTableData.length?this.tableData=JSON.parse(m()(this.textTableData)):this.tableData=[]},components:{fileEdit:O}},Y={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text-table-body"},[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{"class-name":"hide-ellipsis",type:"selection",width:"35"}}),e._v(" "),i("el-table-column",{attrs:{label:"标题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.materialTitle)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex flex-pack-center cursor-pointer",staticStyle:{width:"40px",height:"40px",background:"#f5f7fa"},on:{click:function(a){e.toOpenFile(t.row)}}},[i("img",{staticStyle:{width:"23px"},attrs:{src:a("C2ZR"),alt:""}})])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"编辑人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.staffName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.updateTime)))]),e._v(" "),i("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.updateTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){e.toEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(a){e.toDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),0!=e.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.textShow?i("file-edit",{attrs:{editRow:e.editRow,categoryId:e.categoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},staticRenderFns:[]};var Q=a("VU/8")(Z,Y,!1,function(e){a("KLSU")},"data-v-44bbc31e",null).exports,X={props:{editRow:{type:Object,default:function(){return{}}},categoryParentId:{type:Object,default:function(){return""}}},components:{limitInput:i.a},data:function(){return{editPersion:localStorage.getItem("userName"),dialogVisible:!0,ruleForm:{categoryId:"",categoryName:"",categoryParentId:this.categoryParentId},rules:{categoryName:[{required:!0,message:"请输入分组名称",trigger:"blur"}]}}},methods:{toCancel:function(){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={categoryParentId:e.ruleForm.categoryParentId||"0",categoryId:e.ruleForm.categoryId,categoryName:e.ruleForm.categoryName};Object(r.d)(e.ruleForm.categoryId?"/haoban-manage3-web/category-edit":"/haoban-manage3-web/mateial-add-category",t).then(function(t){var a=t.data;1==a.errorCode?(l.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.$emit("submitGroup")):c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{editRow:function(e){g()(e).length&&(this.ruleForm=JSON.parse(m()(e)))}},mounted:function(){g()(this.editRow).length&&(this.ruleForm=JSON.parse(m()(this.editRow)))}},K={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.editRow.categoryId?"编辑分组":"新增分组",visible:e.dialogVisible,width:"485px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"分组名称",prop:"categoryName"}},[a("limitInput",{attrs:{inputWidth:300,inputValue:e.ruleForm.categoryName,holder:"请输入分组名称",getByType:"word",maxLength:8},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"categoryName",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var ee=a("VU/8")(X,K,!1,function(e){a("61Rz")},"data-v-73824ea0",null).exports,te={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",currentCategoryId:"-1",groupData:[],categoryParentId:"",addShow:!1,editGroupRow:{},expandArr:[],tableData:[],currentPage:1,pageSize:20,total:0,activeName:"1",multOpt:"",multData:[],textShow:!1,imageShow:!1,webShow:!1,videoShow:!1,fileShow:!1,multTrans:!1,materialIds:[]}},methods:{changeOpt:function(e){var t=this;if(!t.multData.length)return l.a.showmsg("请先选择素材","warning"),t.multOpt="",!1;1==e?t.$confirm("确定删除选中的素材?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postMultDel()}).catch(function(){}):(t.materialIds=t.multData.map(function(e){return e.materialId}).join(","),t.multTrans=!0)},postMultDel:function(){var e=this,t={materialIds:e.multData.map(function(e){return e.materialId}).join(",")};Object(r.d)("/haoban-manage3-web/material-del",t).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),e.multOpt="",void e.refreshTable();c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSelText:function(e){this.multData=e},addText:function(){this.textShow=!0},closeText:function(){this.textShow=!1,this.imageShow=!1,this.webShow=!1,this.videoShow=!1,this.fileShow=!1},submitText:function(){this.textShow=!1,this.imageShow=!1,this.webShow=!1,this.videoShow=!1,this.fileShow=!1,this.refreshTable()},addImage:function(){this.imageShow=!0},addWeb:function(){this.webShow=!0},addVideo:function(){this.videoShow=!0},addFile:function(){this.fileShow=!0},refreshTable:function(){this.currentPage=1,this.getTableList()},handleClick:function(){this.currentPage=1,this.getTableList()},selectGroup:function(e){e.expand=!e.expand,this.currentCategoryId=e.categoryId,e.expand?this.expandArr.push(e.categoryId):this.expandArr.splice(this.expandArr.indexOf(e.categoryId),1),this.currentPage=1,this.getTableList(),this.$forceUpdate()},selectNoGroup:function(){this.currentCategoryId="-1",this.currentPage=1,this.getTableList()},toInput:Object(o.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearSearch:function(){this.currentPage=1,this.getTableList()},addGroup:function(){this.addShow=!0,this.categoryParentId="",this.editGroupRow={}},closeGroup:function(){this.multTrans=!1,this.addShow=!1,this.multOpt=""},submitGroup:function(){this.multTrans=!1,this.addShow=!1,this.getGroupData(),this.currentPage=1,this.getTableList(),this.multOpt=""},addChildGroup:function(e){this.editGroupRow={},this.categoryParentId=e.categoryId,this.addShow=!0},editGroup:function(e){this.addShow=!0,this.categoryParentId="",this.editGroupRow=e},delGroup:function(e){var t=this;t.$confirm("是否删除当前选中的分组?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.postDelData(e)}).catch(function(){})},postDelData:function(e){var t=this,a={categoryId:e.categoryId};Object(r.a)("/haoban-manage3-web/category-del",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getGroupData();c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(e){var t=e.filter(function(t){var a=e.filter(function(e){return t.categoryId==e.categoryParentId});return a.length>0?t.children=a:t.children=[],0==t.categoryParentId});return console.log("tree:",t),t},getGroupData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(r.a)("/haoban-manage3-web/category-list",a).then(function(e){var a=e.data;1!=a.errorCode?c.a.errorMsg(a):a.result&&a.result.length&&(a.result.forEach(function(e){e.expand=!!t.expandArr.includes(e.categoryId)}),t.groupData=t.treeData(a.result)||[])}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,keyword:t.searchInput,categoryId:t.currentCategoryId,materialType:t.activeName,pageNum:t.currentPage,pageSize:t.pageSize};Object(r.a)("/haoban-manage3-web/material-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);c.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{},mounted:function(){this.$emit("showTab",3),document.documentElement.style.backgroundColor="#f0f2f5",this.getGroupData(),this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{groupDialog:ee,selectGroup:d,textTable:G,imageTable:E,webTable:A,videoTable:W,fileTable:Q,textEdit:v,imageEdit:U,webEdit:F,videoEdit:N,fileEdit:O}},ae={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"material-set-wrap "},[a("div",{staticClass:" border-box"},[a("div",{staticClass:"material-top border-box"},[a("el-input",{staticStyle:{width:"394px"},attrs:{placeholder:"请输入素材名称",clearable:""},on:{clear:e.clearSearch},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:"material-body flex"},[a("div",{staticClass:"material-left"},[a("div",{staticClass:"material-left-add m-t-10 text-center"},[a("div",{staticClass:"add-group font-14 color-909399 cursor-pointer line-h-32",on:{click:e.addGroup}},[a("span",{staticClass:"el-icon-plus"}),a("span",{staticClass:"p-l-5"},[e._v("新建分组")])])]),e._v(" "),a("div",{staticClass:"group-body"},[a("div",{class:["no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer","-1"==e.currentCategoryId?"current-group":""],on:{click:e.selectNoGroup}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right"],staticStyle:{color:"transparent"}}),e._v("未分组")]),e._v(" "),a("ul",{staticClass:"group-ul padding-lr-12"},[e._l(e.groupData,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["color-c0c4cc font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.addChildGroup(t)}}},[e._v("新增子分组")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),t.children.length?e._e():a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer",t.children.length?"color-c0c4cc":"color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.addChildGroup(t)}}},[e._v("新增子分组")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),t.children.length?e._e():a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1),e._v(" "),t.expand?a("ul",{staticClass:"p-l-10"},[e._l(t.children,function(t,i){return[a("li",{key:i+"group",staticClass:"group-cell"},[a("div",{staticClass:"cursor-pointer group-cell-div",on:{click:function(a){a.stopPropagation(),e.selectGroup(t)}}},[a("span",{class:["font-12 cursor-pointer color-transparent",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),a("span",{class:["group-name font-14 color-606266 p-l-10",e.currentCategoryId==t.categoryId?"current-group":""]},[e._v(e._s(t.categoryName))]),a("el-popover",{attrs:{placement:"bottom",width:"75",trigger:"hover","popper-class":"group-popover"}},[a("ul",[a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.editGroup(t)}}},[e._v("编辑")]),e._v(" "),a("li",{staticClass:"line-h-32 font-14 color-606266",on:{click:function(a){a.stopPropagation(),e.delGroup(t)}}},[e._v("删除")])]),e._v(" "),a("span",{staticClass:"iconfont icongengduo color-afaeae cursor-pointer operate-icon",attrs:{slot:"reference"},slot:"reference"})])],1)])]})],2):e._e()])]})],2):e._e()])]})],2)])]),e._v(" "),a("div",{staticClass:"material-right"},[a("div",{staticClass:"material-table"},[a("div",{staticClass:"add-btn-wrap"},[1==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addText}},[e._v("新建文本")]):e._e(),2==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addImage}},[e._v("新建图片")]):e._e(),3==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addWeb}},[e._v("新建网页")]):e._e(),4==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addVideo}},[e._v("新建视频")]):e._e(),5==e.activeName?a("el-button",{attrs:{type:"primary"},on:{click:e.addFile}},[e._v("新建文件")]):e._e(),a("el-select",{staticClass:"m-l-10",staticStyle:{"vertical-align":"top"},attrs:{placeholder:"批量操作"},on:{change:e.changeOpt},model:{value:e.multOpt,callback:function(t){e.multOpt=t},expression:"multOpt"}},[a("el-option",{attrs:{label:"批量删除",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"批量转移",value:"2"}})],1)],1),e._v(" "),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{name:"1"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconwenzi p-r-5"}),e._v("文本")]),e._v(" "),a("text-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,textTableData:e.tableData,categoryId:e.currentCategoryId},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"图片",name:"2"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont icontupian p-r-5 "}),e._v("图片")]),e._v(" "),a("image-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"网页",name:"3"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont icondaima p-r-5 "}),e._v("网页")]),e._v(" "),a("web-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"视频",name:"4"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconshipin p-r-5 "}),e._v("视频")]),e._v(" "),a("video-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"文件",name:"5"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("i",{staticClass:"iconfont iconwenjian p-r-5 "}),e._v("文件")]),e._v(" "),a("file-table",{attrs:{currentPage:e.currentPage,pageSize:e.pageSize,total:e.total,categoryId:e.currentCategoryId,textTableData:e.tableData},on:{handleSelectionChange:e.handleSelText,refreshTable:e.refreshTable,handleCurrentChange:e.handleCurrentChange,handleSizeChange:e.handleSizeChange}})],1)],1)],1)])])]),e._v(" "),e.addShow?a("group-dialog",{attrs:{categoryParentId:e.categoryParentId,editRow:e.editGroupRow},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e(),e._v(" "),e.textShow?a("text-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.imageShow?a("image-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.webShow?a("web-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.videoShow?a("video-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.fileShow?a("file-edit",{attrs:{categoryId:e.currentCategoryId},on:{closeText:e.closeText,submitText:e.submitText}}):e._e(),e._v(" "),e.multTrans?a("select-group",{attrs:{materialIds:e.materialIds},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e()],1)},staticRenderFns:[]};var ie=a("VU/8")(te,ae,!1,function(e){a("Sggi")},"data-v-f45a350c",null);t.default=ie.exports},seTx:function(e,t){}});
\ No newline at end of file
webpackJsonp([5,47,49,58,63,70],{"/XIA":function(e,t){},"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("JXCd")},"data-v-5106f326",null);t.default=n.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont icon-icon"})])])}]};var n=i("VU/8")(a,s,!1,function(e){i("/XIA")},"data-v-2858c829",null);t.default=n.exports},EUtd:function(e,t){},Isrn:function(e,t,i){"use strict";var a=i("Mk6G"),s={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(e){console.log(e)},toInput:function(e){var t="",i={};return t=a.a.getByteVal(e.target.value,this.limitLength),this.itemValue=t.trim(),this.inputNum=a.a.getZhLen(this.itemValue),this.childFlag?(i.child=this.childFlag,i.value=this.itemValue,"title"==this.titleFlag&&(i.title=this.titleFlag),"k303"==this.c3Flag&&(i.c3Index=this.c3Index,i.flag=this.c3Flag),void this.$emit("itemInput",i)):"title"==this.titleFlag?(i.value=this.itemValue,i.title=this.titleFlag,void this.$emit("itemInput",i)):"k303"==this.c3Flag?(i.value=this.itemValue,i.flag=this.c3Flag,i.c3Index=this.c3Index,void this.$emit("itemInput",i)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(e,t){this.limitLength=e},inputValue:function(e,t){this.itemValue=e,this.inputNum=a.a.getZhLen(this.itemValue)},disFlag:function(e,t){this.disableInput=e},childItem:function(e,t){this.c3Flag=e},childIndex:function(e,t){this.c3Index=e},titleName:function(e,t){this.titleFlag=e},child:function(e,t){this.childFlag=e}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=a.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"input-line-cell"},[i("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=e.disableInput},on:{focus:function(t){e.inputFocus(e.c3Index)}},nativeOn:{keyup:function(t){return i=t,e.toInput(i);var i}},model:{value:e.itemValue,callback:function(t){e.itemValue=t},expression:"itemValue"}}),e._v(" "),i("span",{staticClass:"tip"},[i("span",{staticClass:"len_span"},[e._v(e._s(e.inputNum))]),e._v("/"+e._s(e.limitLength))])],1)},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("Lz4M")},"data-v-407eef81",null);t.a=l.exports},JXCd:function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),n=i("Gu7T"),l=i.n(n),c=i("gBtx"),r=i.n(c),o=i("mvHQ"),d=i.n(o),u=i("u4Bf"),p=i.n(u),m=i("Isrn"),h=i("l46T"),v=i("8dpP"),f=i("rYZf"),g=i("2WGr"),y=i("zHtI"),I=i("O3gZ"),_=i("fPyK"),C=i("fZjL"),b=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){b()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}))],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("VE2D")},"data-v-8a79941e",null).exports,M=i("3E4D"),L=i("Ch4/"),O=i("PI0u"),F=i("P9l9"),T={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&s[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;s[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,s){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object(O.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i={status:1,enterpriseId:t.enterpriseId,templateContent:d()(e),title:t.templateObj.title,description:t.templateObj.description,storeType:t.templateObj.storeType,memory:[]};Object(F.d)("/haoban-app-daily-three-web/daily/save-define-template",i).then(function(e){var t=e.data;1!=t.errorCode?L.a.errorMsg(t):M.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(F.d)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(1==i.errorCode){JSON.parse(localStorage.getItem("userInfos")).enterpriseId;var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}L.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(F.d)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?L.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(r()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(F.d)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));L.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(F.d)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();L.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(r()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(r()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;s.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:v.default,selectCom:f.default,dateRangeCom:g.default,inputCom:y.default,blockCom:I.default,qrcodeDialog:_.a,customSet:k},mounted:function(){var e=this;e.$emit("showTab","32"),document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;s.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},V={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}))],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}))],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(s,n){return a("li",{key:"li"+n,class:["filed-item","child-filed-item",e.currentChildKey==s.name&&e.currentChildIndex==n?"active-item":""],on:{click:function(a){a.stopPropagation(),e.selectChildItem(s.name,i,n,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),e.deleteChildItem(s.name,i,n,t.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):e._e(),e._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):e._e(),e._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):e._e(),e._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):e._e(),e._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):e._e()],1)}))],1)]):e._e()]],2)}))],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(s,n){return[a("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:s.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(s,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}))])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,s){return[e.currentChildIndex!=s||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字")]):e._e()],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=s||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(s,n){return[a("div",{key:"child10"+n,staticClass:"margin-t-15 limit-w-340",style:0==n?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:s.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){e.$set(s,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){e.delChildItem(i,n,t)}}}):e._e(),e._v(" "),!t.systemFlag&&n<19?[n==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){e.addChildItem(i,n,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=s||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=s||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}))])],e._v(" "),e.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var j=i("VU/8")(T,V,!1,function(e){i("EUtd")},"data-v-a476eb08",null);t.default=j.exports},Lz4M:function(e,t){},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])})),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("gqXI")},"data-v-530ad580",null);t.default=n.exports},VE2D:function(e,t){},Y7wY:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja7J0LcJ1lmcebS3NOEnJrE5I2aUJrLyksrYBctlDxxqAdEWVwhV1kvY84OoPCLO7gwojrrO64qzM64nhDO7jVtVNXYdLtAiJia5GFGhCalrVt2iRNmrQnl57kpLn5Sx58ef2+c05OCt00J///ZDJfvvOd93ve5/0//+d53u8kyemNnVwgCPMAuXKBIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrgviuiCI64IgrguCuC4I4rogiOuCIK4LgrguCOK6IIjrgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogrguCuC4IWYL8WbdgYGBgZGRkYmJCi5HdyMnJWbhwYUlJyawZMLv/VyMWi42Pj4sH86iQyM2tqKiYd7qOokP0/Py8aLQgZ0GOeBBGYvjUyMhoQUHBOcXFOblzu+CcGB8/GY+fOnWKdZ8VdZ9N91G68F1ET4OxsTG+ZwHRJ0uI3Fwm4tZ9fnHdanQRPQ3GxyeMJVlSsk9NZLZ6M+3DCPOmVZALBHFdEMR1QRDXBUFcF4RZRr5ckDXo7Ooc6B8oLi4sKiwuKS3Jy9PiiutZiory8qHBwf6Bgbb2dn4sLiouKSmpqqosLCyWc8T1rEIkEl2+fIUdD6DwA/2xWC9iHymIVFRUiPTienaihCKmpHTp0rrh4cTx4z3d3T2QHqWvrq6urKwS14XsFHsYzxcy39nZdeDggfb2djSeM+L6HEMikeg5HrPPSDXU/8X6tR5u8388S15taz9aubgiGo2eCW8MDcVHR8fGRscGh+LuZG5efnFREQcrVixvbu4fPjVMQU9VM99KmjnPdUf0uQKsxea62iWvyWhWl8fjNKVxSJzhu0pLS+dh7T7nuW5EX1a3NDf0YcCAoJ4lrzqbX8WUR2OT6I31nnAnqcUnGVxUhIQXFBRQugTe1dHRZvsz+Xn5DfX1qtfnHqYlVjYZ3BuLdff0OIrDWkqRivKKaXfTe3q6jeiTlczyFfNzQ0a96ZzIXaNdXZ3d3T2uSqmqrILi5Zn9MhtEpyV1RC+fpV+BE9eFdBgfH+/r62ttPTQ6NmpCXlNTXV1dk/kz0QDR5+2Go7h+VrO8u7v7WHfP2PhkcR8piNTW1s6UqSJ6VnHdNvjmUNWeicEnemNdnV3Dp05xnJebt2RJzWlshw8NxR3R6+sb5jnRpeuvLfqbm5pe6K+78qarGk53iEQi0d7RMXDy5T9kUl4+2XpWVc2YppT4e/e2uOK+prpGyyOun0Xo6uo62tVlxyXnnFO7dOnI6Gn+8ZyWlhYr8YuLiuvn5Q6juH6WIh6PHz5y5JWipaa6srKS45GTg6cx2sGDB+KDcetlV65cqQ/3iuuvGWLP79j+B/dY58jOLVt2LliQU7fh5o0Z1TIdHUeP9XQ7Oa9ftmzhwoWnbUzLvr39/f1G9LVrG8MPlcR1YXYwsWC8t68vIOevBrVLa/Ny88fGRxvq6/XJdR+z+fccjx8/PqVkRfO8Nx0cGmxv71hWVxf+QNjAVA2zePHirCGcLfqszEi6PvsoKixauXJFjn739wxD/j070qsWQro+p1C6ftNN6+UG6foZQuvhtsDvRshgQTWMIK4Lgrg+V6B/RCNkf2+al5c3NjZ2pK1jwRz53WqzWcyTrs8YlYsr5hZ18vPysFnM+/+Hnpue1dBzU+m6IIjrgiCuC+K6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogiOuCuC4I4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCuC4K4LgjiuiCI6xkiJydnweQ/gpvQMqRcntwpF2XLXyG2idi6zy+u23/xTCROie6pYH+W9WQ8ngV0Hx8fZyJu3WdBW2fxb5eCWCymP50+zzJVbkVFxXzkOhgYGBgZGZmYkLRnP8vz8/NLSkpmrWaeda4LQvbX64IgrguCuC4I4rogiOuCIK4L4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64K4LgjiuiCI64Iw97g+PDwcOHOs+9gjj+5IevGRI4f58s/85je/TnPL5//wXPoLwEsv7Q/bYOjv72MEN5Q7Bt+8/+u8mvnkf/DD74VPhmfKmaf/93dJR+C8b0DYpMzvG5gjN01qWyq3JF2IMwrWiC87/sVD/5XGMPzpG8ZxKi5l7iVuF2YRw6YxIz+pyx56+Oc33vi+aCTy3HPNdvJE7MT+/fsKo4XusquueqMdtLYe4vuyZfXuJWbuXg3jmWeeXvm6Venn+Z3vfuu9773phReed2cuueTS1avW9PX3DScSjHDhX63jZF9vr8+DwcHB0tKypDMyIw1l5eX29hdffCGJExOJ9vY2/0xZaVlT08M11TX+HA1PPPH41Ve/2W7R2dV56Rsu801KhaT39fHt73wrHo/fdtsnz6061z/f1PTQW99yDWb41Dn33Opjx7o42PP7Z93JSDTq3gtp8ExRUVHSe/X09Fxx+V+zXjiQ8dMbtmnTdTYslPqPLQ9+6IMfsYCHGxe9/mL/SmfApHY8suPyy65wL2Hn0NBQeI3CXgqcLCsrc+sbiUT+748vQct3XfduR3QWjvMz4DquXLVq9f33f+PTt9/R0HCeM72t7Yj7cabwQ5A5LFq0OKm0r1u3nsmgFjAbznGZeRDvwCFW9LFfPsJiJ73F7t27uOAf7vpM4Py/fvnfT89mxNWFekNDw67f7qydChgXKpPqe6xrzeo1HLfs2+sLQUDpCc70ouU4ZGvGElx80SWbNz9w660f5Lz5ypcP/MB3GHzo0MHP3X2vRfKJE8dNemAAxx/4+w+76y+99HJiNal5LkII6YBvkby6umU+icv+TLUd/7N9w4YrsXMqQh7GP2aSi5/KykoMsLkTjeZJ+MNb9ux5trFxrSOA+dN/e2Cavt6Z5xkWPtTW1u3atbMQRAuHEkNE1DXXXMuwboGm5zq45m3XNq5ZC+2e+t1uEznc2t3d7e7NXcMilwlYBr4vqliU5pq9LS+ef/4FTIbLevt6U13vaE0aufPOz+LBL9z3L4Q1YhCwjR8DZxzVfM6x0l//xtfc4AjG7qd+i+bxo0tE2I+cmCtZv/POW25K09z8+9Wr1+BoXg0kkIb6hvKy8kQiEY1GXbQ7Vtl5xyFWkaE+9cnbmQhEN7qH5w6NUNbvff/b73//B/r6+kyDzLccmzD5fjh6tAPtSOVw7DSlDHiJVIDnwwttVSj+wYatW3+yadM7SWimaAQkJ3HjlRs2Wg5HsMx75hnmW1xcXLu01oayk3jJj0y3BOGTrjRgWGx761veZgTAGBN4f4Ey4rqrSSC9SzEQPdW909f6viYhWsRJmgoHscRlaIkVA2lKAgTbCR6UxeOWv3D0tFpuVHOco/z46U9/zOx4o5spB3gNRXz66acsxVPUQSwX8EQC6uXyb6oAJhgikShWmUj77iWD/fwXP7vzjrsch7Zt20rpYhPhYt7y+OOPOWb4QFkRXRbVCaSv62gTB46maxvP7+rq9BXHLnavZq5W+AEjWUSO97+0DxsgOouOza52vf5d76E0sOtZSj9adu56kqrPYsOnOz50QhOWs3CK9of1a2ZbvoxqGHdLooS8EKhcfRV0abe9o/0vfDFVO4bF1YBoXXvtO9K40pUNM8LNN93y6yd/xTKYSZCms/MoTFp34XrqovCYlkz9NoM8G4525vilL3/xhhtu5Ee4whpToVrAcwtmalzHuVbyhmPbFZfMmrLQL8GxlpLXBjeN2LFjO8WAXzSjXu/7m5vD9R53R7k//KGPWX1iPvd1HSr7NpA6/Przueebr3vn9f4CcXcbxAcBw5jhoplZ7N/XYnrMF1Qjzu12jOM8FgaMYkyr+sLeDigURE+jWYHA8KOCoiAjrtstzbmIOioLUqn+yxMYQkJaLY/8OUmdg1KGuQ75cCgsTKrWLAZ+fOyXj1IYZM5yVAF9/dhHP87giJUtDIK9YsXrkBz/Sov+VOprrHVrbHspkO9vb77FJIpFra6uga8sJMe8ZD5ldZk+wZbeTt7CrMu81png8alPPFC6bPnxgxdccKHV1vjQ784DSZxK/Z/u+UeOk9brSd/1/Qe+SyxxQDlKLW7dKr5ixWn6w3LIZZN09zKA0zjjOnPHYALSxRWzYFJ4yaYcGJDCmvgMpLjCwiK/NUq/oeduhK8cwfyomIGuh1XWZWq/ufQDjkYEtcN3Rneq7Ysuupi87+cpl7/gh+vhwuQj11OKpFrgQKmz7WdbsYQBIbptXEDKd7x90z9/8fNoofMUJQR3IRJQbtezm1OIycCY2/+7ifME5OLFlXSHZFsU0Rc2zDt48AAlOMeUpMyI1f3sXXenav8DqZkpJ83OlqBtEH/DJ5UrCC27+PP33WMy4et6qi2Eqqoqq9lYLNet2qYQzAsXqKRxSu00BSerbBfgajTb/MlQ0J06fvWqNQEBxv+YTYVDMDinhSs0azQZjYNUHT8ttb+39kohlyLOp+e6CV5gi9DfMrPcx9pYvFKO0yN++vY7IB/U8XcApzb+WnnJnWThA8XcZEZ+w2WZcN36RTpxfMGAlLwsjPXTvsucp57d8wxVBCY9+KPNmIqX6XpN5HwsWrQI15MriBZqDKhsxmA5RDEhpFTlLgSYZbykhabjNPLj64IJIQ4kd5kZqXoeXkLX0bxUGRxppN1kCpgR0PVw7rWdNALYXkWtXbeaKuOnh4WT3QJrJ7vb3gVQ3H6E7p+47VMBAXZ0RJI2bLiSxhoPQE3EzvTIzZ2XnAjaeaSKtZg2eabH9FwnQ6XZaqQ7sTbF9g2am/fgfUynfv3VE4/7OvqT/9xC15x0/zt9iYIU+RHsGj6Tk1QPLxAGhNz4Pbkn2LL33dffYNzCZtIrhKNacJshNiZlm7WkAakjkGxj2zfAuB4oNMP7g3604wS8xK03bryaFb3l725N6hCojIIgbMaeMHDv7t27CgsLmUJglyl8a27HRDAsaY+LZFCwJd24SLP90LJvL77CLYyMutMAuNDlR3/bO9VGn8kQ8ekndnMR07FNHvxA3YhOcZ6ldNIQSEHpn+dkxHV7WLh//75AxebjySefYNncj7t27bTnC6RIehQn22kYkAq2e0X5TvllNWLmDwVxpe0g4QV4fODAHwkz245EVCZbwPoGSl4KHlc6n9FHjEyE1pm+3NWpcCsaiZL9Ak2twe3MkFsgYlhrzL0ckCfdhgHFpNvWcLvRk/36VNuNK5BY15suWbIUaee7Vf8z4jpiQWvkMjz2kzTIV1AQAcZaxnf9W5r1DRSQiCNFAfnTYtLUk2qHktg5JGn5l6omzIjrZH9Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},ZcO4:function(e,t){},gqXI:function(e,t){},k7oF:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("ZcO4")},"data-v-337dd046",null);t.default=n.exports},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},s={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var n=i("VU/8")(a,s,!1,function(e){i("k7oF")},"data-v-09e8bcce",null);t.default=n.exports}});
\ No newline at end of file
webpackJsonp([48],{X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),c=a("Ch4/"),i=a("3E4D"),l=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(u.d)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCard?coupCardId="+e.coupCardId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCard")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={gicEnterpriseId:(a=t).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo.total);c.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增卡券")])],1),t._v(" "),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"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},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)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("gRjb")},"data-v-5241992b",null);e.default=f.exports},gRjb:function(t,e){}});
\ No newline at end of file
webpackJsonp([50],{X5LE:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),c=a("Ch4/"),i=a("3E4D"),l=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(u.d)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCard?coupCardId="+e.coupCardId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCard")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={gicEnterpriseId:(a=t).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo.total);c.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入卡券名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增卡券")])],1),t._v(" "),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"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},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)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("gRjb")},"data-v-5241992b",null);e.default=f.exports},gRjb:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("JXCd")},"data-v-5106f326",null);e.default=l.exports},JXCd:function(t,e){}});
\ No newline at end of file
webpackJsonp([51],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("JXCd")},"data-v-5106f326",null);e.default=l.exports},JXCd:function(t,e){}});
\ No newline at end of file
webpackJsonp([51],{"4T7k":function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("4T7k")},"data-v-454f316f",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([28],{"4WFR":function(t,e){},lPa5:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),n=s("Ch4/"),r=s("3E4D"),o=s("P9l9"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",setObj:{taskBelong:"1",overDayJudge:""}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={taskBelong:t.setObj.taskBelong,overDayJudge:t.setObj.overDayJudge,wxEnterpriseId:t.wxEnterpriseId};Object(o.d)("/haoban-app-tel-task-three-web/setting/save-session-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(o.d)("/haoban-app-tel-task-three-web/setting/find-session-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result?s.result.taskBelong=String(s.result.taskBelong):(s.result={},s.result.taskBelong="1",s.result.overDayJudge=""),void(t.setObj=s.result);n.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务归属:")]),s("el-radio",{attrs:{label:"1"},model:{value:t.setObj.taskBelong,callback:function(e){t.$set(t.setObj,"taskBelong",e)},expression:"setObj.taskBelong"}},[t._v("成员所属专属导购 > 协管导购,若无专属导购,则随机分配给一名协管导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存并用于全部商户")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(i,l,!1,function(t){s("4WFR")},"data-v-c902b058",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([52],{"5SUQ":function(t,e){},lPa5:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),n=s("Ch4/"),r=s("3E4D"),o=s("P9l9"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",setObj:{taskBelong:"1",overDayJudge:""}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={taskBelong:t.setObj.taskBelong,overDayJudge:t.setObj.overDayJudge,wxEnterpriseId:t.wxEnterpriseId};Object(o.d)("/haoban-app-tel-task-three-web/setting/save-session-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(o.d)("/haoban-app-tel-task-three-web/setting/find-session-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result?s.result.taskBelong=String(s.result.taskBelong):(s.result={},s.result.taskBelong="1",s.result.overDayJudge=""),void(t.setObj=s.result);n.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务归属:")]),s("el-radio",{attrs:{label:"1"},model:{value:t.setObj.taskBelong,callback:function(e){t.$set(t.setObj,"taskBelong",e)},expression:"setObj.taskBelong"}},[t._v("成员所属专属导购 > 协管导购,若无专属导购,则随机分配给一名协管导购")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("话务任务下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存并用于全部商户")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(i,l,!1,function(t){s("5SUQ")},"data-v-47d4f9ea",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([53],{DhLs:function(t,e){},zYBJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("P9l9"),n=s("Ch4/"),o={props:{},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[]}},methods:{changeToggle:function(t){t.expand=!t.expand},getData:function(t){var e=this,s={wxEnterpriseId:e.wxEnterpriseId};Object(a.a)("/haoban-manage3-web/admin-list",s).then(function(t){var s=t.data;if(1==s.errorCode)return s.result&&s.result.length&&s.result.forEach(function(t){t.expand=!1}),void(e.roleList=s.result||[]);n.a.errorMsg(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.$emit("showTab",2),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"daily-set-wrap "},[s("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),s("div",{staticClass:"admin-table-body m-t-20"},[t._m(1),t._v(" "),s("div",{staticClass:"admin-role-body"},[t._l(t.roleList,function(e,a){return[s("div",{key:a+"role"},[s("div",{staticClass:"admin-role-name line-50"},[s("el-row",[s("el-col",{attrs:{span:24}},[s("div",{staticClass:"grid-content cursor-pointer",on:{click:function(s){t.changeToggle(e)}}},[s("span",{class:["iconfont cursor-pointer font-14 color-606266 p-l-30",e.expand?"iconjian":"iconjia"],staticStyle:{"font-size":"14px"}}),s("span",{staticClass:"font-14 color-606266 p-l-40"},[t._v(t._s(e.roleName))])])])],1)],1),t._v(" "),e.expand?s("div",[s("el-row",{staticClass:"bg-ebecf0"},[s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th p-l-85"},[t._v("姓名")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("手机号")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("部门")])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content font-14 color-303133 row-th"},[t._v("操作")])])],1),t._v(" "),s("div",{staticClass:"admin-role-user"},t._l(e.roleUser,function(e,a){return s("el-row",{key:a,staticClass:"line-50 border-set"},[s("el-col",{staticClass:"line-one",attrs:{span:6}},[s("div",{staticClass:"grid-content p-l-85 hide-border"},[t._v(t._s(e.userName||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s(e.userPhone||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s(e.departmentName||"--"))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("div",{staticClass:"grid-content"},[t._v(t._s("--"))])])],1)}))],1):t._e()])]})],2)])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"admin-tip-body"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。")])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"admin-thead bg-ebecf0"},[e("div",{staticClass:"admin-th p-l-85 font-14 color-303133"},[this._v("角色")])])}]};var i=s("VU/8")(o,r,!1,function(t){s("DhLs")},"data-v-4618c379",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([50],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
webpackJsonp([54],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("kMRx")},"data-v-45a71088",null);e.default=o.exports},kMRx:function(t,e){}});
\ No newline at end of file
webpackJsonp([55],{"/yCM":function(t,e){},"m+x7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),s=a("LRn8"),r=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,actictiveGroup:this.activeGroupId,showDialog:!1,activeId:"1",conditionObj:{tableType:"1",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio};Object(r.d)("/haoban-app-tel-task-three-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)});var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(r.b)("/haoban-app-tel-task-three-web/task/export-store-task-list",a).then(function(e){if(!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=(t.tableData[0]?t.tableData[0].storeName:"")+"门店任务报表.csv",o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(r.a)("/haoban-app-tel-task-three-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},initDataRange:function(){var t=new Date,e=t.getTime()-7776e6,a=t.getFullYear(),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),i=n<10?"0"+n:n,s=new Date(e),r=s.getFullYear(),l=s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate();return[r+"-"+(l<10?"0"+l:l)+"-"+c,a+"-"+i+"-"+o]}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){var t=this;t.conditionObj.dateRange=t.initDataRange(),document.documentElement.style.backgroundColor="#f0f2f5",t.activeBrand=t.brandId,this.brandId&&t.$nextTick(function(){t.getTableList()})},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{gicSelectGroup:i.a,multipleDel:s.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("/yCM")},"data-v-37cf5ffa",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([52],{UlM0:function(t,e){},dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Ch4/"),o=a("3E4D"),n=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,s=e.minDate;t.choiceDateCopy=[s.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,s=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>s}}},templateData:[],strategyData:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.d)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.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()},getTableList:function(){var t=this;t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.d)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("UlM0")},"data-v-41e1090f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([55],{UlM0:function(t,e){},dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Ch4/"),o=a("3E4D"),n=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,s=e.minDate;t.choiceDateCopy=[s.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,s=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>s}}},templateData:[],strategyData:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.d)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return o.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);s.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.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()},getTableList:function(){var t=this;t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.d)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);s.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("UlM0")},"data-v-41e1090f",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([26],{BD2W:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),r={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"普通电话",value:1},{label:"双向透传",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.d)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):o.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.d)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("双向透传,使用GIC双向呼叫及透传功能。计费由GIC计费中心计费,可记录通话记录及监测是否拨通。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("普通呼叫,使用导购自己手机呼叫。计费方式同正常手机运营商呼叫计费。无法记录通话记录及监测是否拨通")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(r,n,!1,function(t){s("BD2W")},"data-v-e368494a",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([56],{Vyv9:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),r={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"普通电话",value:1},{label:"双向透传",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""}}},computed:{},methods:{saveSet:Object(a.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.d)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):o.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.d)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("双向透传,使用GIC双向呼叫及透传功能。计费由GIC计费中心计费,可记录通话记录及监测是否拨通。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("普通呼叫,使用导购自己手机呼叫。计费方式同正常手机运营商呼叫计费。无法记录通话记录及监测是否拨通")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(r,n,!1,function(t){s("Vyv9")},"data-v-3f143ed2",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([53],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),n=a("Ch4/"),r=a("P9l9"),o={name:"unreview",data:function(){return{storeSwitch:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{changeSwitch:function(t){this.postData()},postData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,auditFlag:e.storeSwitch?1:0};Object(r.d)("/haoban-manage3-web/audit/open-or-close",a).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):s.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(r.a)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):e.storeSwitch=1==a.result.auditFlag}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeSwitch},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}}),t._v(" "),a("el-tooltip",{attrs:{content:"开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改",placement:"top"}},[a("span",{staticClass:"inline-block font-14 color-303133 m-l-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("开启门店资料修改审核")])])],1)])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(t){a("ev7S")},"data-v-3d2e14d2",null);e.default=c.exports},ev7S:function(t,e){}});
\ No newline at end of file
webpackJsonp([57],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),n=a("Ch4/"),r=a("P9l9"),o={name:"unreview",data:function(){return{storeSwitch:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{changeSwitch:function(t){this.postData()},postData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,auditFlag:e.storeSwitch?1:0};Object(r.d)("/haoban-manage3-web/audit/open-or-close",a).then(function(t){var e=t.data;1!=e.errorCode?n.a.errorMsg(e):s.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(r.a)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;1!=a.errorCode?n.a.errorMsg(a):e.storeSwitch=1==a.result.auditFlag}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeSwitch},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}}),t._v(" "),a("el-tooltip",{attrs:{content:"开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改",placement:"top"}},[a("span",{staticClass:"inline-block font-14 color-303133 m-l-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("开启门店资料修改审核")])])],1)])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(t){a("ev7S")},"data-v-3d2e14d2",null);e.default=c.exports},ev7S:function(t,e){}});
\ No newline at end of file
webpackJsonp([57],{QHTa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("bzW+"),i=a("Qie6"),c=a("Z8ln"),o=a("Ch4/"),r=a("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"会员展示设置",icon:""},{tabId:"12",tabName:"会员分组设置",icon:""},{tabId:"13",tabName:"会员搜索设置",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(s,d,!1,function(t){a("ypIV")},"data-v-36c17537",null);e.default=h.exports},ypIV:function(t,e){}});
\ No newline at end of file
webpackJsonp([54],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n}}},templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.d)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return i()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})});case 5:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"领取开始时间","end-placeholder":"领取结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"核销开始时间","end-placeholder":"核销结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(e){a("kanC")},"data-v-3874edb2",null);t.default=f.exports},kanC:function(e,t){}});
\ No newline at end of file
webpackJsonp([58],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n}}},templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.d)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return i()(o.a.mark(function t(){var a,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})});case 5:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"领取开始时间","end-placeholder":"领取结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"核销开始时间","end-placeholder":"核销结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(e){a("kanC")},"data-v-3874edb2",null);t.default=f.exports},kanC:function(e,t){}});
\ No newline at end of file
webpackJsonp([56],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.d)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.b)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(t){if(!t.data)return d.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(s.a)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("KEU8")},"data-v-37261560",null);e.default=h.exports},KEU8:function(t,e){}});
\ No newline at end of file
webpackJsonp([59],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.d)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=this,e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.b)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(t){if(!t.data)return d.a.errorMsg("暂无数据"),!1;var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(e),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(s.a)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(t){a("KEU8")},"data-v-37261560",null);e.default=h.exports},KEU8:function(t,e){}});
\ No newline at end of file
webpackJsonp([6],{"7oc1":function(t,e){},Isrn:function(t,e,a){"use strict";var s=a("Mk6G"),i={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(t){console.log(t)},toInput:function(t){var e="",a={};return e=s.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=s.a.getZhLen(this.itemValue),this.childFlag?(a.child=this.childFlag,a.value=this.itemValue,"title"==this.titleFlag&&(a.title=this.titleFlag),"k303"==this.c3Flag&&(a.c3Index=this.c3Index,a.flag=this.c3Flag),void this.$emit("itemInput",a)):"title"==this.titleFlag?(a.value=this.itemValue,a.title=this.titleFlag,void this.$emit("itemInput",a)):"k303"==this.c3Flag?(a.value=this.itemValue,a.flag=this.c3Flag,a.c3Index=this.c3Index,void this.$emit("itemInput",a)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,this.inputNum=s.a.getZhLen(this.itemValue)},disFlag:function(t,e){this.disableInput=t},childItem:function(t,e){this.c3Flag=t},childIndex:function(t,e){this.c3Index=t},titleName:function(t,e){this.titleFlag=t},child:function(t,e){this.childFlag=t}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=s.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell"},[a("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=t.disableInput},on:{focus:function(e){t.inputFocus(t.c3Index)}},nativeOn:{keyup:function(e){return a=e,t.toInput(a);var a}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(t){a("Lz4M")},"data-v-407eef81",null);e.a=l.exports},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),l=a.n(n),r=a("u4Bf"),o=a.n(r),c=a("Isrn"),d=a("l46T"),u={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var p=a("VU/8")(u,v,!1,function(t){a("P8Dk")},"data-v-94775b56",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var h=a("VU/8")(m,f,!1,function(t){a("ZwgZ")},"data-v-66c2fe71",null).exports,g={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},C={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(g,C,!1,function(t){a("c44B")},"data-v-6f4f982c",null).exports,_={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(_,I,!1,function(t){a("vDPT")},"data-v-64e9da9d",null).exports,y={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var N=a("VU/8")(y,w,!1,function(t){a("7oc1")},"data-v-b7ca6e44",null).exports,k={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},M={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var L=a("VU/8")(k,M,!1,function(t){a("NwaF")},"data-v-b252e530",null).exports,V=a("fPyK"),D={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},Z={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var O=a("VU/8")(D,Z,!1,function(t){a("ZqcJ")},"data-v-57af6ee3",null).exports,R=a("3E4D"),j=a("Ch4/"),S=a("PI0u"),F=a("P9l9"),W={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(l()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(S.a)(function(t){var e=JSON.parse(l()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?void("save"===t?this.saveAllData(e):this.postPreview(e)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:l()({setting:e.setting,data:t})};Object(F.d)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var e=t.data;1!=e.errorCode?j.a.errorMsg(e):R.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:l()(t)};Object(F.d)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;JSON.parse(localStorage.getItem("userInfos")).enterpriseId;if(1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}j.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(F.a)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}j.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(F.a)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?j.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(l()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:p,storePerformance:h,errorMointor:x,membershipData:b,oldCustomerData:N,birthdayMembershipData:L,qrcodeDialog:V.a,systemSet:O},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},E={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap",style:{minHeight:t.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.templateSet}},[t._v("模板设置")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}))],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var X=a("VU/8")(W,E,!1,function(t){a("Wsbp")},"data-v-014587f8",null);e.default=X.exports},Lz4M:function(t,e){},NwaF:function(t,e){},P8Dk:function(t,e){},Wsbp:function(t,e){},Y7wY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja7J0LcJ1lmcebS3NOEnJrE5I2aUJrLyksrYBctlDxxqAdEWVwhV1kvY84OoPCLO7gwojrrO64qzM64nhDO7jVtVNXYdLtAiJia5GFGhCalrVt2iRNmrQnl57kpLn5Sx58ef2+c05OCt00J///ZDJfvvOd93ve5/0//+d53u8kyemNnVwgCPMAuXKBIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrgviuiCI64IgrguCuC4I4rogiOuCIK4LgrguCOK6IIjrgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogrguCuC4IWYL8WbdgYGBgZGRkYmJCi5HdyMnJWbhwYUlJyawZMLv/VyMWi42Pj4sH86iQyM2tqKiYd7qOokP0/Py8aLQgZ0GOeBBGYvjUyMhoQUHBOcXFOblzu+CcGB8/GY+fOnWKdZ8VdZ9N91G68F1ET4OxsTG+ZwHRJ0uI3Fwm4tZ9fnHdanQRPQ3GxyeMJVlSsk9NZLZ6M+3DCPOmVZALBHFdEMR1QRDXBUFcF4RZRr5ckDXo7Ooc6B8oLi4sKiwuKS3Jy9PiiutZiory8qHBwf6Bgbb2dn4sLiouKSmpqqosLCyWc8T1rEIkEl2+fIUdD6DwA/2xWC9iHymIVFRUiPTienaihCKmpHTp0rrh4cTx4z3d3T2QHqWvrq6urKwS14XsFHsYzxcy39nZdeDggfb2djSeM+L6HEMikeg5HrPPSDXU/8X6tR5u8388S15taz9aubgiGo2eCW8MDcVHR8fGRscGh+LuZG5efnFREQcrVixvbu4fPjVMQU9VM99KmjnPdUf0uQKsxea62iWvyWhWl8fjNKVxSJzhu0pLS+dh7T7nuW5EX1a3NDf0YcCAoJ4lrzqbX8WUR2OT6I31nnAnqcUnGVxUhIQXFBRQugTe1dHRZvsz+Xn5DfX1qtfnHqYlVjYZ3BuLdff0OIrDWkqRivKKaXfTe3q6jeiTlczyFfNzQ0a96ZzIXaNdXZ3d3T2uSqmqrILi5Zn9MhtEpyV1RC+fpV+BE9eFdBgfH+/r62ttPTQ6NmpCXlNTXV1dk/kz0QDR5+2Go7h+VrO8u7v7WHfP2PhkcR8piNTW1s6UqSJ6VnHdNvjmUNWeicEnemNdnV3Dp05xnJebt2RJzWlshw8NxR3R6+sb5jnRpeuvLfqbm5pe6K+78qarGk53iEQi0d7RMXDy5T9kUl4+2XpWVc2YppT4e/e2uOK+prpGyyOun0Xo6uo62tVlxyXnnFO7dOnI6Gn+8ZyWlhYr8YuLiuvn5Q6juH6WIh6PHz5y5JWipaa6srKS45GTg6cx2sGDB+KDcetlV65cqQ/3iuuvGWLP79j+B/dY58jOLVt2LliQU7fh5o0Z1TIdHUeP9XQ7Oa9ftmzhwoWnbUzLvr39/f1G9LVrG8MPlcR1YXYwsWC8t68vIOevBrVLa/Ny88fGRxvq6/XJdR+z+fccjx8/PqVkRfO8Nx0cGmxv71hWVxf+QNjAVA2zePHirCGcLfqszEi6PvsoKixauXJFjn739wxD/j070qsWQro+p1C6ftNN6+UG6foZQuvhtsDvRshgQTWMIK4Lgrg+V6B/RCNkf2+al5c3NjZ2pK1jwRz53WqzWcyTrs8YlYsr5hZ18vPysFnM+/+Hnpue1dBzU+m6IIjrgiCuC+K6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogiOuCuC4I4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCuC4K4LgjiuiCI6xkiJydnweQ/gpvQMqRcntwpF2XLXyG2idi6zy+u23/xTCROie6pYH+W9WQ8ngV0Hx8fZyJu3WdBW2fxb5eCWCymP50+zzJVbkVFxXzkOhgYGBgZGZmYkLRnP8vz8/NLSkpmrWaeda4LQvbX64IgrguCuC4I4rogiOuCIK4L4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64K4LgjiuiCI64Iw97g+PDwcOHOs+9gjj+5IevGRI4f58s/85je/TnPL5//wXPoLwEsv7Q/bYOjv72MEN5Q7Bt+8/+u8mvnkf/DD74VPhmfKmaf/93dJR+C8b0DYpMzvG5gjN01qWyq3JF2IMwrWiC87/sVD/5XGMPzpG8ZxKi5l7iVuF2YRw6YxIz+pyx56+Oc33vi+aCTy3HPNdvJE7MT+/fsKo4XusquueqMdtLYe4vuyZfXuJWbuXg3jmWeeXvm6Venn+Z3vfuu9773phReed2cuueTS1avW9PX3DScSjHDhX63jZF9vr8+DwcHB0tKypDMyIw1l5eX29hdffCGJExOJ9vY2/0xZaVlT08M11TX+HA1PPPH41Ve/2W7R2dV56Rsu801KhaT39fHt73wrHo/fdtsnz6061z/f1PTQW99yDWb41Dn33Opjx7o42PP7Z93JSDTq3gtp8ExRUVHSe/X09Fxx+V+zXjiQ8dMbtmnTdTYslPqPLQ9+6IMfsYCHGxe9/mL/SmfApHY8suPyy65wL2Hn0NBQeI3CXgqcLCsrc+sbiUT+748vQct3XfduR3QWjvMz4DquXLVq9f33f+PTt9/R0HCeM72t7Yj7cabwQ5A5LFq0OKm0r1u3nsmgFjAbznGZeRDvwCFW9LFfPsJiJ73F7t27uOAf7vpM4Py/fvnfT89mxNWFekNDw67f7qydChgXKpPqe6xrzeo1HLfs2+sLQUDpCc70ouU4ZGvGElx80SWbNz9w660f5Lz5ypcP/MB3GHzo0MHP3X2vRfKJE8dNemAAxx/4+w+76y+99HJiNal5LkII6YBvkby6umU+icv+TLUd/7N9w4YrsXMqQh7GP2aSi5/KykoMsLkTjeZJ+MNb9ux5trFxrSOA+dN/e2Cavt6Z5xkWPtTW1u3atbMQRAuHEkNE1DXXXMuwboGm5zq45m3XNq5ZC+2e+t1uEznc2t3d7e7NXcMilwlYBr4vqliU5pq9LS+ef/4FTIbLevt6U13vaE0aufPOz+LBL9z3L4Q1YhCwjR8DZxzVfM6x0l//xtfc4AjG7qd+i+bxo0tE2I+cmCtZv/POW25K09z8+9Wr1+BoXg0kkIb6hvKy8kQiEY1GXbQ7Vtl5xyFWkaE+9cnbmQhEN7qH5w6NUNbvff/b73//B/r6+kyDzLccmzD5fjh6tAPtSOVw7DSlDHiJVIDnwwttVSj+wYatW3+yadM7SWimaAQkJ3HjlRs2Wg5HsMx75hnmW1xcXLu01oayk3jJj0y3BOGTrjRgWGx761veZgTAGBN4f4Ey4rqrSSC9SzEQPdW909f6viYhWsRJmgoHscRlaIkVA2lKAgTbCR6UxeOWv3D0tFpuVHOco/z46U9/zOx4o5spB3gNRXz66acsxVPUQSwX8EQC6uXyb6oAJhgikShWmUj77iWD/fwXP7vzjrsch7Zt20rpYhPhYt7y+OOPOWb4QFkRXRbVCaSv62gTB46maxvP7+rq9BXHLnavZq5W+AEjWUSO97+0DxsgOouOza52vf5d76E0sOtZSj9adu56kqrPYsOnOz50QhOWs3CK9of1a2ZbvoxqGHdLooS8EKhcfRV0abe9o/0vfDFVO4bF1YBoXXvtO9K40pUNM8LNN93y6yd/xTKYSZCms/MoTFp34XrqovCYlkz9NoM8G4525vilL3/xhhtu5Ee4whpToVrAcwtmalzHuVbyhmPbFZfMmrLQL8GxlpLXBjeN2LFjO8WAXzSjXu/7m5vD9R53R7k//KGPWX1iPvd1HSr7NpA6/Przueebr3vn9f4CcXcbxAcBw5jhoplZ7N/XYnrMF1Qjzu12jOM8FgaMYkyr+sLeDigURE+jWYHA8KOCoiAjrtstzbmIOioLUqn+yxMYQkJaLY/8OUmdg1KGuQ75cCgsTKrWLAZ+fOyXj1IYZM5yVAF9/dhHP87giJUtDIK9YsXrkBz/Sov+VOprrHVrbHspkO9vb77FJIpFra6uga8sJMe8ZD5ldZk+wZbeTt7CrMu81png8alPPFC6bPnxgxdccKHV1vjQ784DSZxK/Z/u+UeOk9brSd/1/Qe+SyxxQDlKLW7dKr5ixWn6w3LIZZN09zKA0zjjOnPHYALSxRWzYFJ4yaYcGJDCmvgMpLjCwiK/NUq/oeduhK8cwfyomIGuh1XWZWq/ufQDjkYEtcN3Rneq7Ysuupi87+cpl7/gh+vhwuQj11OKpFrgQKmz7WdbsYQBIbptXEDKd7x90z9/8fNoofMUJQR3IRJQbtezm1OIycCY2/+7ifME5OLFlXSHZFsU0Rc2zDt48AAlOMeUpMyI1f3sXXenav8DqZkpJ83OlqBtEH/DJ5UrCC27+PP33WMy4et6qi2Eqqoqq9lYLNet2qYQzAsXqKRxSu00BSerbBfgajTb/MlQ0J06fvWqNQEBxv+YTYVDMDinhSs0azQZjYNUHT8ttb+39kohlyLOp+e6CV5gi9DfMrPcx9pYvFKO0yN++vY7IB/U8XcApzb+WnnJnWThA8XcZEZ+w2WZcN36RTpxfMGAlLwsjPXTvsucp57d8wxVBCY9+KPNmIqX6XpN5HwsWrQI15MriBZqDKhsxmA5RDEhpFTlLgSYZbykhabjNPLj64IJIQ4kd5kZqXoeXkLX0bxUGRxppN1kCpgR0PVw7rWdNALYXkWtXbeaKuOnh4WT3QJrJ7vb3gVQ3H6E7p+47VMBAXZ0RJI2bLiSxhoPQE3EzvTIzZ2XnAjaeaSKtZg2eabH9FwnQ6XZaqQ7sTbF9g2am/fgfUynfv3VE4/7OvqT/9xC15x0/zt9iYIU+RHsGj6Tk1QPLxAGhNz4Pbkn2LL33dffYNzCZtIrhKNacJshNiZlm7WkAakjkGxj2zfAuB4oNMP7g3604wS8xK03bryaFb3l725N6hCojIIgbMaeMHDv7t27CgsLmUJglyl8a27HRDAsaY+LZFCwJd24SLP90LJvL77CLYyMutMAuNDlR3/bO9VGn8kQ8ekndnMR07FNHvxA3YhOcZ6ldNIQSEHpn+dkxHV7WLh//75AxebjySefYNncj7t27bTnC6RIehQn22kYkAq2e0X5TvllNWLmDwVxpe0g4QV4fODAHwkz245EVCZbwPoGSl4KHlc6n9FHjEyE1pm+3NWpcCsaiZL9Ak2twe3MkFsgYlhrzL0ckCfdhgHFpNvWcLvRk/36VNuNK5BY15suWbIUaee7Vf8z4jpiQWvkMjz2kzTIV1AQAcZaxnf9W5r1DRSQiCNFAfnTYtLUk2qHktg5JGn5l6omzIjrZH9Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},ZqcJ:function(t,e){},ZwgZ:function(t,e){},c44B:function(t,e){},vDPT:function(t,e){}});
\ No newline at end of file
webpackJsonp([6],{"7N7C":function(t,e){},"7oc1":function(t,e){},Isrn:function(t,e,a){"use strict";var s=a("Mk6G"),i={name:"addinput",props:{childItem:String,childIndex:Number,titleName:String,inputValue:String,maxLength:Number,disFlag:Number,child:String},data:function(){return{inputNum:0,limitLength:10,itemValue:"",disableInput:!1,c3Flag:"",c3Index:"",titleFlag:"",childFlag:""}},methods:{inputFocus:function(t){console.log(t)},toInput:function(t){var e="",a={};return e=s.a.getByteVal(t.target.value,this.limitLength),this.itemValue=e.trim(),this.inputNum=s.a.getZhLen(this.itemValue),this.childFlag?(a.child=this.childFlag,a.value=this.itemValue,"title"==this.titleFlag&&(a.title=this.titleFlag),"k303"==this.c3Flag&&(a.c3Index=this.c3Index,a.flag=this.c3Flag),void this.$emit("itemInput",a)):"title"==this.titleFlag?(a.value=this.itemValue,a.title=this.titleFlag,void this.$emit("itemInput",a)):"k303"==this.c3Flag?(a.value=this.itemValue,a.flag=this.c3Flag,a.c3Index=this.c3Index,void this.$emit("itemInput",a)):void this.$emit("itemInput",this.itemValue)}},watch:{maxLength:function(t,e){this.limitLength=t},inputValue:function(t,e){this.itemValue=t,this.inputNum=s.a.getZhLen(this.itemValue)},disFlag:function(t,e){this.disableInput=t},childItem:function(t,e){this.c3Flag=t},childIndex:function(t,e){this.c3Index=t},titleName:function(t,e){this.titleFlag=t},child:function(t,e){this.childFlag=t}},mounted:function(){console.log(this.childIndex),this.limitLength=this.maxLength,this.itemValue=this.inputValue||"",this.inputNum=s.a.getZhLen(this.inputValue),this.disableInput=this.disFlag||0,this.c3Flag=this.childItem||"",this.c3Index=0==this.childIndex?0:this.childIndex,this.titleFlag=this.titleName,this.childFlag=this.child}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell"},[a("el-input",{staticClass:"w-340",attrs:{placeholder:"",disabled:0!=t.disableInput},on:{focus:function(e){t.inputFocus(t.c3Index)}},nativeOn:{keyup:function(e){return a=e,t.toInput(a);var a}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),t._v(" "),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(t){a("Lz4M")},"data-v-407eef81",null);e.a=l.exports},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),l=a.n(n),r=a("u4Bf"),o=a.n(r),c=a("Isrn"),d=a("l46T"),u={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var p=a("VU/8")(u,v,!1,function(t){a("P8Dk")},"data-v-94775b56",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var h=a("VU/8")(m,f,!1,function(t){a("ZwgZ")},"data-v-66c2fe71",null).exports,g={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},C={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(g,C,!1,function(t){a("c44B")},"data-v-6f4f982c",null).exports,_={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(_,I,!1,function(t){a("vDPT")},"data-v-64e9da9d",null).exports,y={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var N=a("VU/8")(y,w,!1,function(t){a("7oc1")},"data-v-b7ca6e44",null).exports,k={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},M={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var L=a("VU/8")(k,M,!1,function(t){a("NwaF")},"data-v-b252e530",null).exports,V=a("fPyK"),D={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},Z={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var O=a("VU/8")(D,Z,!1,function(t){a("ZqcJ")},"data-v-57af6ee3",null).exports,R=a("3E4D"),j=a("Ch4/"),S=a("PI0u"),F=a("P9l9"),W={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(l()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(S.a)(function(t){var e=JSON.parse(l()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?void("save"===t?this.saveAllData(e):this.postPreview(e)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:l()({setting:e.setting,data:t})};Object(F.d)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var e=t.data;1!=e.errorCode?j.a.errorMsg(e):R.a.showmsg("保存成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:l()(t)};Object(F.d)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;JSON.parse(localStorage.getItem("userInfos")).enterpriseId;if(1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}j.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(F.a)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}j.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(F.a)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?j.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(l()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:p,storePerformance:h,errorMointor:x,membershipData:b,oldCustomerData:N,birthdayMembershipData:L,qrcodeDialog:V.a,systemSet:O},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},E={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap",style:{minHeight:t.bodyHeight}},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.templateSet}},[t._v("模板设置")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}))],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}))],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var X=a("VU/8")(W,E,!1,function(t){a("7N7C")},"data-v-56987dab",null);e.default=X.exports},Lz4M:function(t,e){},NwaF:function(t,e){},P8Dk:function(t,e){},Y7wY:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACRCAIAAACOionwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODlGRUMwRjlBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODlGRUMwRkFBNDNCMTFFOEFDNjNEOUI2M0M2ODI3MUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OUZFQzBGN0E0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4OUZFQzBGOEE0M0IxMUU4QUM2M0Q5QjYzQzY4MjcxQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuyjFLAAABInSURBVHja7J0LcJ1lmcebS3NOEnJrE5I2aUJrLyksrYBctlDxxqAdEWVwhV1kvY84OoPCLO7gwojrrO64qzM64nhDO7jVtVNXYdLtAiJia5GFGhCalrVt2iRNmrQnl57kpLn5Sx58ef2+c05OCt00J///ZDJfvvOd93ve5/0//+d53u8kyemNnVwgCPMAuXKBIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrgviuiCI64IgrguCuC4I4rogiOuCIK4LgrguCOK6IIjrgrguCOK6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogrguCuC4IWYL8WbdgYGBgZGRkYmJCi5HdyMnJWbhwYUlJyawZMLv/VyMWi42Pj4sH86iQyM2tqKiYd7qOokP0/Py8aLQgZ0GOeBBGYvjUyMhoQUHBOcXFOblzu+CcGB8/GY+fOnWKdZ8VdZ9N91G68F1ET4OxsTG+ZwHRJ0uI3Fwm4tZ9fnHdanQRPQ3GxyeMJVlSsk9NZLZ6M+3DCPOmVZALBHFdEMR1QRDXBUFcF4RZRr5ckDXo7Ooc6B8oLi4sKiwuKS3Jy9PiiutZiory8qHBwf6Bgbb2dn4sLiouKSmpqqosLCyWc8T1rEIkEl2+fIUdD6DwA/2xWC9iHymIVFRUiPTienaihCKmpHTp0rrh4cTx4z3d3T2QHqWvrq6urKwS14XsFHsYzxcy39nZdeDggfb2djSeM+L6HEMikeg5HrPPSDXU/8X6tR5u8388S15taz9aubgiGo2eCW8MDcVHR8fGRscGh+LuZG5efnFREQcrVixvbu4fPjVMQU9VM99KmjnPdUf0uQKsxea62iWvyWhWl8fjNKVxSJzhu0pLS+dh7T7nuW5EX1a3NDf0YcCAoJ4lrzqbX8WUR2OT6I31nnAnqcUnGVxUhIQXFBRQugTe1dHRZvsz+Xn5DfX1qtfnHqYlVjYZ3BuLdff0OIrDWkqRivKKaXfTe3q6jeiTlczyFfNzQ0a96ZzIXaNdXZ3d3T2uSqmqrILi5Zn9MhtEpyV1RC+fpV+BE9eFdBgfH+/r62ttPTQ6NmpCXlNTXV1dk/kz0QDR5+2Go7h+VrO8u7v7WHfP2PhkcR8piNTW1s6UqSJ6VnHdNvjmUNWeicEnemNdnV3Dp05xnJebt2RJzWlshw8NxR3R6+sb5jnRpeuvLfqbm5pe6K+78qarGk53iEQi0d7RMXDy5T9kUl4+2XpWVc2YppT4e/e2uOK+prpGyyOun0Xo6uo62tVlxyXnnFO7dOnI6Gn+8ZyWlhYr8YuLiuvn5Q6juH6WIh6PHz5y5JWipaa6srKS45GTg6cx2sGDB+KDcetlV65cqQ/3iuuvGWLP79j+B/dY58jOLVt2LliQU7fh5o0Z1TIdHUeP9XQ7Oa9ftmzhwoWnbUzLvr39/f1G9LVrG8MPlcR1YXYwsWC8t68vIOevBrVLa/Ny88fGRxvq6/XJdR+z+fccjx8/PqVkRfO8Nx0cGmxv71hWVxf+QNjAVA2zePHirCGcLfqszEi6PvsoKixauXJFjn739wxD/j070qsWQro+p1C6ftNN6+UG6foZQuvhtsDvRshgQTWMIK4Lgrg+V6B/RCNkf2+al5c3NjZ2pK1jwRz53WqzWcyTrs8YlYsr5hZ18vPysFnM+/+Hnpue1dBzU+m6IIjrgiCuC+K6IIjrgiCuC4K4LgjiuiCI64IgrguCuC4I4rogiOuCuC4I4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCuC4K4LgjiuiCI6xkiJydnweQ/gpvQMqRcntwpF2XLXyG2idi6zy+u23/xTCROie6pYH+W9WQ8ngV0Hx8fZyJu3WdBW2fxb5eCWCymP50+zzJVbkVFxXzkOhgYGBgZGZmYkLRnP8vz8/NLSkpmrWaeda4LQvbX64IgrguCuC4I4rogiOuCIK4L4rogiOuCIK4LgrguCOK6IIjrgiCuC4K4LgjiuiCI64K4LgjiuiCI64Iw97g+PDwcOHOs+9gjj+5IevGRI4f58s/85je/TnPL5//wXPoLwEsv7Q/bYOjv72MEN5Q7Bt+8/+u8mvnkf/DD74VPhmfKmaf/93dJR+C8b0DYpMzvG5gjN01qWyq3JF2IMwrWiC87/sVD/5XGMPzpG8ZxKi5l7iVuF2YRw6YxIz+pyx56+Oc33vi+aCTy3HPNdvJE7MT+/fsKo4XusquueqMdtLYe4vuyZfXuJWbuXg3jmWeeXvm6Venn+Z3vfuu9773phReed2cuueTS1avW9PX3DScSjHDhX63jZF9vr8+DwcHB0tKypDMyIw1l5eX29hdffCGJExOJ9vY2/0xZaVlT08M11TX+HA1PPPH41Ve/2W7R2dV56Rsu801KhaT39fHt73wrHo/fdtsnz6061z/f1PTQW99yDWb41Dn33Opjx7o42PP7Z93JSDTq3gtp8ExRUVHSe/X09Fxx+V+zXjiQ8dMbtmnTdTYslPqPLQ9+6IMfsYCHGxe9/mL/SmfApHY8suPyy65wL2Hn0NBQeI3CXgqcLCsrc+sbiUT+748vQct3XfduR3QWjvMz4DquXLVq9f33f+PTt9/R0HCeM72t7Yj7cabwQ5A5LFq0OKm0r1u3nsmgFjAbznGZeRDvwCFW9LFfPsJiJ73F7t27uOAf7vpM4Py/fvnfT89mxNWFekNDw67f7qydChgXKpPqe6xrzeo1HLfs2+sLQUDpCc70ouU4ZGvGElx80SWbNz9w660f5Lz5ypcP/MB3GHzo0MHP3X2vRfKJE8dNemAAxx/4+w+76y+99HJiNal5LkII6YBvkby6umU+icv+TLUd/7N9w4YrsXMqQh7GP2aSi5/KykoMsLkTjeZJ+MNb9ux5trFxrSOA+dN/e2Cavt6Z5xkWPtTW1u3atbMQRAuHEkNE1DXXXMuwboGm5zq45m3XNq5ZC+2e+t1uEznc2t3d7e7NXcMilwlYBr4vqliU5pq9LS+ef/4FTIbLevt6U13vaE0aufPOz+LBL9z3L4Q1YhCwjR8DZxzVfM6x0l//xtfc4AjG7qd+i+bxo0tE2I+cmCtZv/POW25K09z8+9Wr1+BoXg0kkIb6hvKy8kQiEY1GXbQ7Vtl5xyFWkaE+9cnbmQhEN7qH5w6NUNbvff/b73//B/r6+kyDzLccmzD5fjh6tAPtSOVw7DSlDHiJVIDnwwttVSj+wYatW3+yadM7SWimaAQkJ3HjlRs2Wg5HsMx75hnmW1xcXLu01oayk3jJj0y3BOGTrjRgWGx761veZgTAGBN4f4Ey4rqrSSC9SzEQPdW909f6viYhWsRJmgoHscRlaIkVA2lKAgTbCR6UxeOWv3D0tFpuVHOco/z46U9/zOx4o5spB3gNRXz66acsxVPUQSwX8EQC6uXyb6oAJhgikShWmUj77iWD/fwXP7vzjrsch7Zt20rpYhPhYt7y+OOPOWb4QFkRXRbVCaSv62gTB46maxvP7+rq9BXHLnavZq5W+AEjWUSO97+0DxsgOouOza52vf5d76E0sOtZSj9adu56kqrPYsOnOz50QhOWs3CK9of1a2ZbvoxqGHdLooS8EKhcfRV0abe9o/0vfDFVO4bF1YBoXXvtO9K40pUNM8LNN93y6yd/xTKYSZCms/MoTFp34XrqovCYlkz9NoM8G4525vilL3/xhhtu5Ee4whpToVrAcwtmalzHuVbyhmPbFZfMmrLQL8GxlpLXBjeN2LFjO8WAXzSjXu/7m5vD9R53R7k//KGPWX1iPvd1HSr7NpA6/Przueebr3vn9f4CcXcbxAcBw5jhoplZ7N/XYnrMF1Qjzu12jOM8FgaMYkyr+sLeDigURE+jWYHA8KOCoiAjrtstzbmIOioLUqn+yxMYQkJaLY/8OUmdg1KGuQ75cCgsTKrWLAZ+fOyXj1IYZM5yVAF9/dhHP87giJUtDIK9YsXrkBz/Sov+VOprrHVrbHspkO9vb77FJIpFra6uga8sJMe8ZD5ldZk+wZbeTt7CrMu81png8alPPFC6bPnxgxdccKHV1vjQ784DSZxK/Z/u+UeOk9brSd/1/Qe+SyxxQDlKLW7dKr5ixWn6w3LIZZN09zKA0zjjOnPHYALSxRWzYFJ4yaYcGJDCmvgMpLjCwiK/NUq/oeduhK8cwfyomIGuh1XWZWq/ufQDjkYEtcN3Rneq7Ysuupi87+cpl7/gh+vhwuQj11OKpFrgQKmz7WdbsYQBIbptXEDKd7x90z9/8fNoofMUJQR3IRJQbtezm1OIycCY2/+7ifME5OLFlXSHZFsU0Rc2zDt48AAlOMeUpMyI1f3sXXenav8DqZkpJ83OlqBtEH/DJ5UrCC27+PP33WMy4et6qi2Eqqoqq9lYLNet2qYQzAsXqKRxSu00BSerbBfgajTb/MlQ0J06fvWqNQEBxv+YTYVDMDinhSs0azQZjYNUHT8ttb+39kohlyLOp+e6CV5gi9DfMrPcx9pYvFKO0yN++vY7IB/U8XcApzb+WnnJnWThA8XcZEZ+w2WZcN36RTpxfMGAlLwsjPXTvsucp57d8wxVBCY9+KPNmIqX6XpN5HwsWrQI15MriBZqDKhsxmA5RDEhpFTlLgSYZbykhabjNPLj64IJIQ4kd5kZqXoeXkLX0bxUGRxppN1kCpgR0PVw7rWdNALYXkWtXbeaKuOnh4WT3QJrJ7vb3gVQ3H6E7p+47VMBAXZ0RJI2bLiSxhoPQE3EzvTIzZ2XnAjaeaSKtZg2eabH9FwnQ6XZaqQ7sTbF9g2am/fgfUynfv3VE4/7OvqT/9xC15x0/zt9iYIU+RHsGj6Tk1QPLxAGhNz4Pbkn2LL33dffYNzCZtIrhKNacJshNiZlm7WkAakjkGxj2zfAuB4oNMP7g3604wS8xK03bryaFb3l725N6hCojIIgbMaeMHDv7t27CgsLmUJglyl8a27HRDAsaY+LZFCwJd24SLP90LJvL77CLYyMutMAuNDlR3/bO9VGn8kQ8ekndnMR07FNHvxA3YhOcZ6ldNIQSEHpn+dkxHV7WLh//75AxebjySefYNncj7t27bTnC6RIehQn22kYkAq2e0X5TvllNWLmDwVxpe0g4QV4fODAHwkz245EVCZbwPoGSl4KHlc6n9FHjEyE1pm+3NWpcCsaiZL9Ak2twe3MkFsgYlhrzL0ckCfdhgHFpNvWcLvRk/36VNuNK5BY15suWbIUaee7Vf8z4jpiQWvkMjz2kzTIV1AQAcZaxnf9W5r1DRSQiCNFAfnTYtLUk2qHktg5JGn5l6omzIjrZH9Yy13XXbg+vBhuXCZGNjQ3sZybNz9gzxfMULo6miGUiVxpW+AzpQj8YJ5XXLHBtpkZ2bYC07/Ld3Fb25G1jecj6iynazwoRaj1mZSvqamqhVcPJKOp6eHGxrW2a+7OE3UUQlhiu/jQN1zSkNB6e2NhInIl+ZPKqvVwqxO5pIJCE7l+/etdVWPXsGqor/Wd5KsMi8ZXtjt3bKfmDlSeUMVaMtoYNN6Uzi+sCcLw83JssJD+yle+hOWErmtSOUnucp3um65+s61XmMTpd2ym4Xp7exusRRr9IsEeVrkWxJ4S2+4SZln8uf14V5ZxHtJ/9CMfR8/CwReodP3mmlsTS5YZqZ6bmh664T03utrUOnf0A4q4Wov0Z2w2bTM/Ysa999wX2LDbtm0ro2E2RRfJlOxB02k3be9oN977G6yQym1cBB5zTrsbDavIdUl3YFk8i14mZURnFu4B7dRu5qN42H3GATMiUw+k0A5mx0vQjrnAe2hkbZm/ZKvXNDICBArU2S4eiEN7WucDNw4NDZpsW4EaEGCCx/amyBiUi64pghu2JTVtv/5ygxE7cejQQSvkPnf3vUZl2+km/uPxOIzCzwyFD7/6tX9DfNM0OdMi+f8asN7IaOE2j5yJeNBWGk/ZZgvX2wOXpBOb6RNW3EeXSUX4xo1v8ifmtpOQIrzMHVl45MRdE5b8pLeGKIi9rZYxwz1Vtni2CaZJINydm1qo+OEd8FgqWJmbqtphXoEnr25LjuIVs63BdVsx9lGc8GPRyNSeurMwLH7uKW+gFTEn+G7J5GMU/qc8/KEoF+2M+ZMb+e9yXPIjjT7ELVDgdknbmzT+nJ7rgpB90OfXBXFdEMR1QRDXBUFcFwRxXRDEdUF4LfEnAQYA+LOKDxiFWhsAAAAASUVORK5CYII="},ZqcJ:function(t,e){},ZwgZ:function(t,e){},c44B:function(t,e){},vDPT:function(t,e){}});
\ No newline at end of file
webpackJsonp([58],{ZcO4:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var i=a("VU/8")(s,c,!1,function(t){a("ZcO4")},"data-v-337dd046",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([60],{ZcO4:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var i=a("VU/8")(s,c,!1,function(t){a("ZcO4")},"data-v-337dd046",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([59],{BgBI:function(t,e){},Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("BgBI")},"data-v-30d200c5",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([61],{BgBI:function(t,e){},Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("BgBI")},"data-v-30d200c5",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([60],{"//Ug":function(e,t){},fAFA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ch4/"),c=a("PI0u"),l=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota"},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={enterpriseId:a.brandId},Object(l.a)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):i.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={enterpriseId:e.brandId,year:e.year},Object(l.a)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(c.c)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getYearList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth)}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("//Ug")},"data-v-30947aab",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([62],{"//Ug":function(e,t){},fAFA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ch4/"),c=a("PI0u"),l=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota"},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={enterpriseId:a.brandId},Object(l.a)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):i.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={enterpriseId:e.brandId,year:e.year},Object(l.a)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(c.c)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getYearList()}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth)}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("//Ug")},"data-v-30947aab",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([61],{OuPF:function(e,t){},odfG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),l=a("PI0u"),i=a("P9l9"),r={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1}}},methods:{submit:Object(l.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId},l=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,l="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===e&&(l="/haoban-app-customer-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,l="/haoban-app-customer-web/customer/save-member-show-setting"),Object(i.d)(l,a).then(function(e){var t=e.data;1!=t.errorCode?o.a.errorMsg(t):s.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getShowSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.d)("/haoban-app-customer-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getShowSet(this.brandId)}},mounted:function(){this.$emit("showTab","11"),this.getShowSet(this.brandId)},components:{}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已开卡会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员,不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购联系会员方式:")])]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("添加会员/发消息")])],1),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var m=a("VU/8")(r,n,!1,function(e){a("OuPF")},"data-v-2e7fb338",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([63],{OuPF:function(e,t){},odfG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),l=a("PI0u"),i=a("P9l9"),r={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeName:"first",activeGroup:this.activeGroupId,wxEnterpriseRelatedId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:!1,chatFlag:!1,mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1,clerkSeeOtherFlag:!1,isSeeAuthMember:!1,allowGuideContact:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1}}},methods:{submit:Object(l.a)(function(e){this.setData(e)},500),setData:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId},l=void 0;"showFlag"!=e?(a[e]=t.myCustomData[e]?1:0,l="/haoban-app-customer-web/customer/save-online-chat-setting","searchFlag"===e&&(l="/haoban-app-customer-web/customer/save-customer-setting")):(a.mainStoreFlag=t.myCustomData.mainStoreFlag?1:0,a.minorStoreFlag=t.myCustomData.minorStoreFlag?1:0,a.openCardStoreFlag=t.myCustomData.openCardStoreFlag?1:0,a.clerkSeeOtherFlag=t.myCustomData.clerkSeeOtherFlag?1:0,a.allowGuideContact=t.myCustomData.allowGuideContact?1:0,a.allowGuideMobile=t.myCustomData.allowGuideMobile?1:0,a.allowGuideMessage=t.myCustomData.allowGuideMessage?1:0,a.allowGuideOnlineChat=t.myCustomData.allowGuideOnlineChat?1:0,a.isSeeAuthMember=t.myCustomData.isSeeAuthMember?1:0,a.chatFlag=t.myCustomData.chatFlag,a.isMessageRemind=t.myCustomData.isMessageRemind,a.messageRemindTime=t.myCustomData.messageRemindTime,a.isTemplateMessage=t.myCustomData.isTemplateMessage,a.isImgMessage=t.myCustomData.isImgMessage,a.isGoodMessage=t.myCustomData.isGoodMessage,a.isIntegralGoodMessage=t.myCustomData.isIntegralGoodMessage,l="/haoban-app-customer-web/customer/save-member-show-setting"),Object(i.d)(l,a).then(function(e){var t=e.data;1!=t.errorCode?o.a.errorMsg(t):s.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeAllowGuide:function(e){this.myCustomData.allowGuideMobile=e,this.myCustomData.allowGuideMessage=e,this.myCustomData.allowGuideOnlineChat=e},changeContact:function(){this.myCustomData.allowGuideMobile||this.myCustomData.allowGuideMessage||this.myCustomData.allowGuideOnlineChat||(this.myCustomData.allowGuideContact=!1)},getShowSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.d)("/haoban-app-customer-web/customer/find-member-show-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(a.result.mainStoreFlag=1==a.result.mainStoreFlag,a.result.minorStoreFlag=1==a.result.minorStoreFlag,a.result.openCardStoreFlag=1==a.result.openCardStoreFlag,a.result.clerkSeeOtherFlag=1==a.result.clerkSeeOtherFlag,a.result.allowGuideContact=1==a.result.allowGuideContact,a.result.allowGuideMobile=1==a.result.allowGuideMobile,a.result.allowGuideMessage=1==a.result.allowGuideMessage,a.result.allowGuideOnlineChat=1==a.result.allowGuideOnlineChat,a.result.isSeeAuthMember=1==a.result.isSeeAuthMember,a.result.searchFlag=1==a.result.searchFlag,t.myCustomData=a.result)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getShowSet(this.brandId)}},mounted:function(){this.$emit("showTab","11"),this.getShowSet(this.brandId)},components:{}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.mainStoreFlag,callback:function(t){e.$set(e.myCustomData,"mainStoreFlag",t)},expression:"myCustomData.mainStoreFlag"}},[e._v("展示服务门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.minorStoreFlag,callback:function(t){e.$set(e.myCustomData,"minorStoreFlag",t)},expression:"myCustomData.minorStoreFlag"}},[e._v("展示协管门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.openCardStoreFlag,callback:function(t){e.$set(e.myCustomData,"openCardStoreFlag",t)},expression:"myCustomData.openCardStoreFlag"}},[e._v("展示开卡门店会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.isSeeAuthMember,callback:function(t){e.$set(e.myCustomData,"isSeeAuthMember",t)},expression:"myCustomData.isSeeAuthMember"}},[e._v("展示已开卡会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店微信会员(不含未开卡会员)及POS会员,不勾选将展示微信会员(即微信总量,含未开卡会员)及POS会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.myCustomData.clerkSeeOtherFlag,callback:function(t){e.$set(e.myCustomData,"clerkSeeOtherFlag",t)},expression:"myCustomData.clerkSeeOtherFlag"}},[e._v("允许导购查看其他导购会员")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购可查看本门店其他导购名下会员")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"注:开启后,可选择导购在 < 我的顾客 > 中是否通过以下方式联系会员",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[e._v("导购联系会员方式:")])]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMobile,callback:function(t){e.$set(e.myCustomData,"allowGuideMobile",t)},expression:"myCustomData.allowGuideMobile"}},[e._v("电话")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideMessage,callback:function(t){e.$set(e.myCustomData,"allowGuideMessage",t)},expression:"myCustomData.allowGuideMessage"}},[e._v("短信")]),e._v(" "),a("el-checkbox",{on:{change:e.changeContact},model:{value:e.myCustomData.allowGuideOnlineChat,callback:function(t){e.$set(e.myCustomData,"allowGuideOnlineChat",t)},expression:"myCustomData.allowGuideOnlineChat"}},[e._v("添加会员/发消息")])],1),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submit("showFlag")}}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var m=a("VU/8")(r,n,!1,function(e){a("OuPF")},"data-v-2e7fb338",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([63],{"/XIA":function(t,e){},"8dpP":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("/XIA")},"data-v-2858c829",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([64],{"/XIA":function(t,e){},"8dpP":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=i("VU/8")(s,a,!1,function(t){i("/XIA")},"data-v-2858c829",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([64],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.d)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("NKh0")},"data-v-25161bbc",null);e.default=g.exports},NKh0:function(t,e){}});
\ No newline at end of file
webpackJsonp([65],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.d)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("NKh0")},"data-v-25161bbc",null);e.default=g.exports},NKh0:function(t,e){}});
\ No newline at end of file
webpackJsonp([66],{"82Ge":function(t,e){},c7iB:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),s=a("exGp"),o=a.n(s),i=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.templateId)}).catch(function(){})},delCardList:function(t){var e=this,a={templateId:t};Object(u.d)("/haoban-app-customer-web/inner/delete-template",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList();i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardTemp?templateId="+e.templateId)},toInput:Object(c.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardTemp")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return o()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={wxEnterpriseId:(a=t).wxEnterpriseId,search:a.searchInput||""},Object(u.d)("/haoban-app-customer-web/inner/list-template",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result||[],void(!a.searchInput&&e.result&&e.result.length&&(a.total=e.result.length));i.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.getTableList()}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入模板名称",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[t._v("内购券是选取GIC中针对企业内部员工发下的,最多创建20个模板")])],1),t._v(" "),a("el-button",{attrs:{disabled:t.total>=20,type:"primary"},on:{click:t.toNewCard}},[t._v("新增模板")])],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.templateName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.commitName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("82Ge")},"data-v-1178ecf4",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([65],{E6lG:function(t,e){},K8Yn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),o=a("Ch4/"),i=a("PI0u"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(t,e){this.recoverItem=e,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",storeFlag:e.storeFlag,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.a)("/haoban-manage3-web/department-recycle-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:s.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:t.changeType},model:{value:t.storeFlag,callback:function(e){t.storeFlag=e},expression:"storeFlag"}},t._l(t.options,function(t){return a("el-option",{key:t.value+"type",attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["iconfont color-2f54eb",1==e.row.isStore?"icondianpu-kuai":"iconqiye-tianchong"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toRecover(e.$index,e.row)}}},[t._v("恢复")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])])]),t._v(" "),t.setVisible?a("set-department",{attrs:{recoverItem:t.recoverItem},on:{closeSet:t.closeSet}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),e("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var u=a("VU/8")(r,c,!1,function(t){a("E6lG")},"data-v-24edcdc5",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([66],{E6lG:function(t,e){},K8Yn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),o=a("Ch4/"),i=a("PI0u"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(t,e){this.recoverItem=e,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",storeFlag:e.storeFlag,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.a)("/haoban-manage3-web/department-recycle-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:s.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:t.changeType},model:{value:t.storeFlag,callback:function(e){t.storeFlag=e},expression:"storeFlag"}},t._l(t.options,function(t){return a("el-option",{key:t.value+"type",attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["iconfont color-2f54eb",1==e.row.isStore?"icondianpu-kuai":"iconqiye-tianchong"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toRecover(e.$index,e.row)}}},[t._v("恢复")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("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)])])]),t._v(" "),t.setVisible?a("set-department",{attrs:{recoverItem:t.recoverItem},on:{closeSet:t.closeSet}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),e("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var u=a("VU/8")(r,c,!1,function(t){a("E6lG")},"data-v-24edcdc5",null);e.default=u.exports}});
\ No newline at end of file
webpackJsonp([62],{a05l:function(e,t){},upTI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),s=a("Kkt8"),o=a("PI0u"),n=a("Ch4/"),i=a("3E4D"),l=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",createName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",formData:{taskTitle:"",taskContent:"",addTimeType:"1"},rules:{taskTitle:[{required:!0,message:"请输入任务标题",trigger:"blur"}],taskContent:[{required:!0,message:"请输入任务内容",trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},500),postSave:function(){var e=this,t={taskTitle:e.formData.taskTitle,taskContent:e.formData.taskContent,addTimeType:e.formData.addTimeType,wxEnterpriseId:e.wxEnterpriseId,createName:e.createName};Object(l.d)("/haoban-app-tel-task-three-web/create-session-task",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("保存成功","success"),void e.$router.push("/taskList");n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,taskType:1};Object(l.d)("/haoban-app-tel-task-three-web/find-task-setting",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.relaxTaskJudge=1==a.result.relaxTaskJudge,void(e.setObj=a.result);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{limitInput:r.a,limitTextarea:s.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"task-set-content boder-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务标题",prop:"taskTitle"}},[a("limitInput",{attrs:{inputWidth:372,disflag:!!e.$route.query.sessionTaskId,inputValue:e.formData.taskTitle,getByType:"word",holder:"请输入任务标题",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"taskTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务内容",prop:"taskContent"}},[a("limit-textarea",{attrs:{inputWidth:372,inputValue:e.formData.taskContent,holder:"请输入任务内容",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.formData,"taskContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"添加好友时间",prop:"addTimeType"}},[a("el-radio",{attrs:{label:"1"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一个月")]),e._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一周")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.sessionTaskId?"编辑":"新建"))])],1)],1)],1)])},staticRenderFns:[]};var m=a("VU/8")(d,u,!1,function(e){a("a05l")},"data-v-2a59fc35",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([69],{GLu7:function(e,t){},upTI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("l46T"),s=a("Kkt8"),o=a("PI0u"),n=a("Ch4/"),i=a("3E4D"),d=a("P9l9"),l={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",createName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",formData:{taskTitle:"",taskContent:"",addTimeType:"1"},rules:{taskTitle:[{required:!0,message:"请输入任务标题",trigger:"blur"}],taskContent:[{required:!0,message:"请输入任务内容",trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},500),postSave:function(){var e=this,t={taskTitle:e.formData.taskTitle,taskContent:e.formData.taskContent,addTimeType:e.formData.addTimeType,wxEnterpriseId:e.wxEnterpriseId,createName:e.createName};Object(d.d)("/haoban-app-tel-task-three-web/create-session-task",t).then(function(t){var a=t.data;if(1==a.errorCode)return i.a.showmsg("保存成功","success"),void e.$router.push("/taskList");n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,taskType:1};Object(d.d)("/haoban-app-tel-task-three-web/find-task-setting",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.relaxTaskJudge=1==a.result.relaxTaskJudge,void(e.setObj=a.result);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{limitInput:r.a,limitTextarea:s.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"task-set-content boder-box"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"任务标题",prop:"taskTitle"}},[a("limitInput",{attrs:{inputWidth:372,disflag:!!e.$route.query.sessionTaskId,inputValue:e.formData.taskTitle,getByType:"word",holder:"请输入任务标题",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"taskTitle",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务内容",prop:"taskContent"}},[a("limit-textarea",{attrs:{inputWidth:372,inputValue:e.formData.taskContent,holder:"请输入任务内容",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.formData,"taskContent",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"添加好友时间",prop:"addTimeType"}},[a("el-radio",{attrs:{label:"1"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一个月")]),e._v(" "),a("el-radio",{attrs:{label:"2"},model:{value:e.formData.addTimeType,callback:function(t){e.$set(e.formData,"addTimeType",t)},expression:"formData.addTimeType"}},[e._v("近一周")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.sessionTaskId?"编辑":"新建"))])],1)],1)],1)])},staticRenderFns:[]};var m=a("VU/8")(l,u,!1,function(e){a("GLu7")},"data-v-0bdda65c",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([69],{Fpg1:function(t,e){},jPcV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("Fpg1")},"data-v-0a3b7ba4",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([70],{Fpg1:function(t,e){},jPcV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("Fpg1")},"data-v-0a3b7ba4",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([70],{k7oF:function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("k7oF")},"data-v-09e8bcce",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([71],{k7oF:function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("k7oF")},"data-v-09e8bcce",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([73],{FreK:function(t,e){},QHTa:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("bzW+"),i=a("Qie6"),c=a("Z8ln"),o=a("Ch4/"),r=a("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"会员展示设置",icon:""},{tabId:"12",tabName:"会员分组设置",icon:""},{tabId:"13",tabName:"会员搜索设置",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(r.a)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(s,d,!1,function(t){a("FreK")},"data-v-06f02a1c",null);e.default=h.exports}});
\ No newline at end of file
webpackJsonp([9],{CJE6:function(e,t){},OK9R:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),o=s.getMonth()+1,n=s.getDate();return i+t+a(o)+t+a(n)+t}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(s,i,!1,function(e){a("CJE6")},"data-v-5a02018c",null);t.a=o.exports},nWkG:function(e,t){},uEj7:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),o=a("Zx22"),n={name:"record-list",props:{detailShow:{type:Boolean,default:!1},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")}},watch:{detailShow:function(e,t){this.customDialog=e},tableListData:function(e,t){this.tableData=e}},mounted:function(){this.customDialog=this.detailShow,this.tableData=this.tableListData}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":2==t.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.brandName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[e._v(e._s(t.row.storeName))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),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.auditStatus)+"\n ")]}}])})],1)],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(n,l,!1,function(e){a("nWkG")},"data-v-55dc7f0b",null).exports,c={name:"record-list",props:{resultText:{type:String,default:""},resultShow:{type:Boolean,default:!1}},data:function(){return{customDialog:this.resultShow}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideResultDialog")},showDetail:function(){this.$emit("showResultDetail")}},watch:{resultShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.resultShow}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"提示",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"result-content"},[a("span",[e._v(e._s(e.resultText))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:e.showDetail}},[e._v("查看详情")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("uEj7")},"data-v-305aa100",null).exports,f=a("3E4D"),h=a("Ch4/"),p=a("PI0u"),v=a("P9l9"),g={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"1"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(p.a)(function(e){if(!String(e.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),hideDetailDialog:function(){this.detailShow=!1},hideResultDialog:function(){this.resultShow=!1,this.getTableList()},showResultDetail:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){var s=this;if(s.selectId=t.auditId,a&&(s.refuseVisible=!0),a)return!1;s.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){s.sendApprove()}).catch(function(){s.selectId=""})},sendApprove:Object(p.a)(function(){this.postApprove(this.selectId)},500),approveAll:function(){var e=this,t=e.multipleSelection.length?e.multipleSelection.map(function(e){return e.auditId}):"";if(!t)return e.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;e.$confirm("是否批量同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postAllApprove(t)})},postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};Object(v.d)("/haoban-manage3-web/audit/audit",a).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),t.approveVisible=!1,t.getTableList(),void t.$forceUpdate();h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={auditIds:e};Object(v.d)("/haoban-manage3-web/audit/batch-approve",a).then(function(e){var a=e.data;if(1==a.errorCode){var s=a.result.list;return t.resultText=a.result.auditResult,t.tableListData=[],t.tableData.forEach(function(e){s.forEach(function(a){a.auditId==e.auditId&&(e.auditStatus=1==a.auditStatus?"成功":"失败",t.tableListData.push(e))})}),void(t.resultShow=!0)}h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(p.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,auditReason:e.ruleForm.refuseReason};Object(v.a)("/haoban-manage3-web/audit/refuse",t).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();h.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){var t=this,a={staffId:e};Object(v.d)("/haoban-manage3-web/get-staff-info",a).then(function(e){var a=e.data;1!=a.errorCode?h.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getBrandData:function(){var e=this;Object(v.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var a=t.data;1!=a.errorCode?h.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toLogin:function(){var e=this;return new i.a(function(t,a){Object(v.a)("/haoban-manage3-web/get-login-info",{}).then(function(e){var a=e.data;1!=a.errorCode?(h.a.errorMsg(a),t({wxEnterpriseId:""})):t(a.result.wxEnterpriseId)}).catch(function(a){t({wxEnterpriseId:""}),e.$message.error({duration:1e3,message:a.message})})})},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.filterValue,auditStatus:"0",auditFlag:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};Object(v.a)("/haoban-manage3-web/audit/find-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList(),this.getBrandData()},components:{storeChange:o.a,reviewResultDetail:r,reviewResult:d}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-250 ",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchInput);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.getTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),e._v(" "),e._l(e.brandOptions,function(e){return a("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})})],2)],1)]),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.auditType?"门店信息变更":1==t.row.auditType?"新增成员":2==t.row.auditType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.commitStaffImg?a("img",{attrs:{src:t.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[e._v(e._s(t.row.commitStaffName||"--"))]),e._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.commitStoreName||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[6!=t.row.changeField?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),6==t.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{tableListData:e.tableListData,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),e._v(" "),a("review-result",{attrs:{resultText:e.resultText,resultShow:e.resultShow},on:{showResultDetail:e.showResultDetail,hideResultDialog:e.hideResultDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(g,m,!1,function(e){a("OK9R")},"data-v-703a7a55",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([9],{CJE6:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),o=s.getMonth()+1,n=s.getDate();return i+t+a(o)+t+a(n)+t}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var o=a("VU/8")(s,i,!1,function(e){a("CJE6")},"data-v-5a02018c",null);t.a=o.exports},nWkG:function(e,t){},tdNr:function(e,t){},uEj7:function(e,t){},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),o=a("Zx22"),n={name:"record-list",props:{detailShow:{type:Boolean,default:!1},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")}},watch:{detailShow:function(e,t){this.customDialog=e},tableListData:function(e,t){this.tableData=e}},mounted:function(){this.customDialog=this.detailShow,this.tableData=this.tableListData}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":2==t.row.auditingType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.brandName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13 text-ellipsis"},[e._v(e._s(t.row.storeName))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),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.auditStatus)+"\n ")]}}])})],1)],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(n,l,!1,function(e){a("nWkG")},"data-v-55dc7f0b",null).exports,c={name:"record-list",props:{resultText:{type:String,default:""},resultShow:{type:Boolean,default:!1}},data:function(){return{customDialog:this.resultShow}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideResultDialog")},showDetail:function(){this.$emit("showResultDetail")}},watch:{resultShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.resultShow}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"提示",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"result-content"},[a("span",[e._v(e._s(e.resultText))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:e.showDetail}},[e._v("查看详情")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("uEj7")},"data-v-305aa100",null).exports,f=a("3E4D"),h=a("Ch4/"),p=a("PI0u"),v=a("P9l9"),g={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"1"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(p.a)(function(e){if(!String(e.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),hideDetailDialog:function(){this.detailShow=!1},hideResultDialog:function(){this.resultShow=!1,this.getTableList()},showResultDetail:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){var s=this;if(s.selectId=t.auditId,a&&(s.refuseVisible=!0),a)return!1;s.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){s.sendApprove()}).catch(function(){s.selectId=""})},sendApprove:Object(p.a)(function(){this.postApprove(this.selectId)},500),approveAll:function(){var e=this,t=e.multipleSelection.length?e.multipleSelection.map(function(e){return e.auditId}):"";if(!t)return e.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;e.$confirm("是否批量同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postAllApprove(t)})},postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};Object(v.d)("/haoban-manage3-web/audit/audit",a).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),t.approveVisible=!1,t.getTableList(),void t.$forceUpdate();h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={auditIds:e};Object(v.d)("/haoban-manage3-web/audit/batch-approve",a).then(function(e){var a=e.data;if(1==a.errorCode){var s=a.result.list;return t.resultText=a.result.auditResult,t.tableListData=[],t.tableData.forEach(function(e){s.forEach(function(a){a.auditId==e.auditId&&(e.auditStatus=1==a.auditStatus?"成功":"失败",t.tableListData.push(e))})}),void(t.resultShow=!0)}h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(p.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,auditReason:e.ruleForm.refuseReason};Object(v.a)("/haoban-manage3-web/audit/refuse",t).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();h.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){var t=this,a={staffId:e};Object(v.d)("/haoban-manage3-web/get-staff-info",a).then(function(e){var a=e.data;1!=a.errorCode?h.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getBrandData:function(){var e=this;Object(v.d)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var a=t.data;1!=a.errorCode?h.a.errorMsg(a):a.result&&a.result.length&&(e.brandOptions=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toLogin:function(){var e=this;return new i.a(function(t,a){Object(v.a)("/haoban-manage3-web/get-login-info",{}).then(function(e){var a=e.data;1!=a.errorCode?(h.a.errorMsg(a),t({wxEnterpriseId:""})):t(a.result.wxEnterpriseId)}).catch(function(a){t({wxEnterpriseId:""}),e.$message.error({duration:1e3,message:a.message})})})},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.filterValue,auditStatus:"0",auditFlag:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};Object(v.a)("/haoban-manage3-web/audit/find-page",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);h.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList(),this.getBrandData()},components:{storeChange:o.a,reviewResultDetail:r,reviewResult:d}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-250 ",attrs:{placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchInput);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.getTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[a("el-option",{attrs:{label:"全部品牌",value:""}}),e._v(" "),e._l(e.brandOptions,function(e){return a("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})})],2)],1)]),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.auditType?"门店信息变更":1==t.row.auditType?"新增成员":2==t.row.auditType?"成员离职":"转移成员")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.commitStaffImg?a("img",{attrs:{src:t.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[e._v(e._s(t.row.commitStaffName||"--"))]),e._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.commitStoreName||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[6!=t.row.changeField?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),6==t.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{tableListData:e.tableListData,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),e._v(" "),a("review-result",{attrs:{resultText:e.resultText,resultShow:e.resultShow},on:{showResultDetail:e.showResultDetail,hideResultDialog:e.hideResultDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(g,m,!1,function(e){a("tdNr")},"data-v-65734b78",null);t.default=b.exports}});
\ No newline at end of file
webpackJsonp([75],{"/NA0":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),r=(a("j1ja"),a("hKoQ")),p=a.n(r),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){a("/NA0")},null,null).exports,c=a("lRwf"),u=a.n(c),m=a("pRNm"),d=a.n(m),l=a("5tgt"),v=a.n(l);u.a.use(d.a);var h=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,g=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:v()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:v()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:v()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:v()("business","recycle")},{path:"/syncLog",name:"通讯录日志",component:v()("business","syncLog")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:v()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:v()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:v()("enterprise","adminList")},{path:"/material",name:"素材库",component:v()("enterprise","material")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:v()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:v()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:v()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:v()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:v()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:v()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:v()("apps/customerApp","memberSearchSet")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("apps/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:v()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:v()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("apps/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("apps/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("apps/cloudDaily","customReport")},{path:"/customReportSet",name:"自定义报表设置",component:v()("apps/cloudDaily","customReportSet")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("apps/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("apps/trafficTask","taskRecord")},{path:"/taskView",name:"话务任务记录",component:v()("apps/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:v()("apps/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:v()("apps/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("apps/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("apps/badEvaluate","badEvaluateSet")},{path:"/taskList",name:"会话任务列表",component:v()("apps/trafficTask","taskList")},{path:"/newSession",name:"新建会话任务",component:v()("apps/trafficTask","newSession")},{path:"/taskSessionSet",name:"会话任务设置",component:v()("apps/trafficTask","taskSessionSet")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("apps/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("apps/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("apps/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/cardList",name:"卡券赠送",redirect:"/cardList",component:v()("apps/card","index"),children:[{path:"/cardList",name:"卡券列表",component:v()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:v()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:v()("apps/card","newCard")}]},{path:"/protectCard",name:"内购券",redirect:"/cardTemplate",component:v()("apps/protectCard","index"),children:[{path:"/cardTemplate",name:"卡券模板",component:v()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:v()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:v()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:v()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:v()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:v()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:v()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:v()("apps/protectCard","cardGetRecord")}]}]},{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:"/reviewSet",name:"审核设置",component:v()("reviewCenter","reviewSet")}]},{path:"/gic-error",name:"gic跳转失败页",component:v()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],S=new d.a({routes:g,scrollBehavior:function(){return{y:0}}}),D=a("zL8q"),w=a.n(D),k=a("Rf8U"),y=a.n(k),x=a("mtWM"),T=a.n(x),C=a("bOdI"),b=a.n(C),R=a("SJI6"),A=a.n(R);u.a.use(A.a);var E=new A.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),b()(f,"saveAdd",function(e,t){e.addDepartment.push(t)}),b()(f,"saveEdit",function(e,t){e.editDepartment.push(t)}),b()(f,"saveDel",function(e,t){e.delDepartment.push(t)}),b()(f,"clearAdd",function(e){e.addDepartment=[]}),b()(f,"clearEdit",function(e){e.editDepartment=[]}),b()(f,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),f),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")}}}),L=(a("4qCZ"),a("tvR6"),a("uKUT"),a("Xcu2"),a("xtVA"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),n={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+n+" "+r+":"+p+":"+s}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=a<10?"0"+a:a;return t.getFullYear()+"-"+n}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a;return t.getFullYear()+"-"+o+"-"+n}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+n+" "+r+":"+p+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var n=Math.floor(a/864e5);console.log(a,n);var o=a%864e5,r=o%36e5;return n+"天"+Math.floor(o/36e5)+"小时"+Math.floor(r/6e4)+"分"}}}),M=a("TUaa"),P=a.n(M),V=a("tyqE"),q=a.n(V),H=a("pRVe"),I=a.n(H),Y=a("XsK6"),j=a.n(Y),G=a("QRL9"),N=a.n(G),O=a("2Pnh"),F=a.n(O),J=a("l9mu"),U=a.n(J),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;F()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,n=t.height,o=a/592.28*841.89,r=n,p=0,s=592.28/a*n,i=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(r<o)c.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)c.addImage(i,"JPEG",0,p,595.28,s),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}},z=a("/IwO"),K=a.n(z);p.a.polyfill(),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(X),Vue.use(j.a),Vue.use(N.a),Vue.use(I.a),Vue.use(q.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(w.a,{size:"large"}),Vue.use(y.a,T.a),Vue.axios.defaults.withCredentials=!0,o()(L).forEach(function(e){Vue.filter(e,L[e])}),S.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var n=window.location.origin;n.indexOf("localhost"),localStorage.getItem("userInfos"),"/"==e.path?a({path:"/login"}):a()}),new Vue({el:"#app",router:S,store:E,components:{App:i},template:"<App/>"})},Opzk:function(e,t,a){var n={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,42],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,64],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,26],"./apps/badEvaluate/index.vue":["AG22",0,23],"./apps/card/cardList.vue":["X5LE",0,48],"./apps/card/cardRecord.vue":["xDJN",0,11],"./apps/card/index.vue":["nV1L",0,39],"./apps/card/newCard.vue":["7/Zw",0,12],"./apps/cloudDaily/customReport.vue":["ak3k",0,29],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,5],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,13],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,18],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,56],"./apps/cloudDaily/index.vue":["4QyY",0,32],"./apps/cloudDaily/systemReport.vue":["J/6z",0,6],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,25],"./apps/cloudDaily/template/block.vue":["O3gZ",47],"./apps/cloudDaily/template/date-range.vue":["2WGr",49],"./apps/cloudDaily/template/image.vue":["8dpP",63],"./apps/cloudDaily/template/input.vue":["zHtI",70],"./apps/cloudDaily/template/select.vue":["rYZf",58],"./apps/customerApp/index.vue":["QHTa",0,57],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,40],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,46],"./apps/customerApp/memberShowSet.vue":["odfG",0,61],"./apps/index.vue":["K1Vb",0,50],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,54],"./apps/protectCard/cardPut.vue":["cD4x",0,41],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,52],"./apps/protectCard/cardStrategy.vue":["rUvh",0,19],"./apps/protectCard/cardTemplate.vue":["c7iB",0,66],"./apps/protectCard/index.vue":["aWmL",0,36],"./apps/protectCard/newCardPut.vue":["9db3",0,8],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,7],"./apps/protectCard/newCardTemp.vue":["tF0P",0,30],"./apps/quota/companyDaySet.vue":["NiGE",0,68],"./apps/quota/index.vue":["qSX4",0,33],"./apps/quota/monthList.vue":["fAFA",0,60],"./apps/quota/monthTask.vue":["NpHY",0,31],"./apps/quota/monthTaskDetail.vue":["YKf6",0,38],"./apps/quota/salerMonthDetail.vue":["+qr5",0,72],"./apps/quota/storeMonthTask.vue":["qWC+",0,67],"./apps/trafficTask/index.vue":["FmZU",0,71],"./apps/trafficTask/newSession.vue":["upTI",0,62],"./apps/trafficTask/taskDetail.vue":["XrDD",0,14],"./apps/trafficTask/taskList.vue":["FMQe",0,73],"./apps/trafficTask/taskRecord.vue":["m+x7",0,55],"./apps/trafficTask/taskSessionSet.vue":["lPa5",0,28],"./apps/trafficTask/taskView.vue":["w2fd",0,21],"./apps/trafficTask/taskViewDetail.vue":["SBUJ",0,43],"./apps/trafficTask/trafficTaskSet.vue":["OUXi",0,27],"./business/contacts.vue":["/W60",0,2],"./business/index.vue":["jPcV",0,69],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,65],"./business/syncLog.vue":["20P3",0,24],"./enterprise/adminList.vue":["zYBJ",0,45],"./enterprise/enterpriseSet.vue":["x5Fx",0,35],"./enterprise/index.vue":["m9dW",0,51],"./enterprise/material.vue":["q+Sm",0,4],"./errorPage/403.vue":["6XGN",20],"./errorPage/404.vue":["AejC",22],"./errorPage/500.vue":["FskK",16],"./errorPage/gic-error.vue":["Q3j/",17],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,37],"./login/index.vue":["T+/8",0,15],"./overstore/index.vue":["Y55K",0,59],"./overstore/overStoreList.vue":["vuAV",0,34],"./reviewCenter/index.vue":["+lem",0,44],"./reviewCenter/reviewSet.vue":["6j9f",0,53],"./reviewCenter/reviewed.vue":["CLYF",0,10],"./reviewCenter/unreview.vue":["xCEU",0,9]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},tvR6:function(e,t){},uKUT:function(e,t){},xtVA:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([75],{"/NA0":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),r=(a("j1ja"),a("hKoQ")),p=a.n(r),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var i=a("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){a("/NA0")},null,null).exports,c=a("lRwf"),u=a.n(c),m=a("pRNm"),d=a.n(m),l=a("5tgt"),v=a.n(l);u.a.use(d.a);var h=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var f,g=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:v()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:v()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:v()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:v()("business","recycle")},{path:"/syncLog",name:"通讯录日志",component:v()("business","syncLog")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:v()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:v()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:v()("enterprise","adminList")},{path:"/material",name:"素材库",component:v()("enterprise","material")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:v()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:v()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:v()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:v()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:v()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:v()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:v()("apps/customerApp","memberSearchSet")}]},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("apps/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:v()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:v()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("apps/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("apps/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("apps/cloudDaily","customReport")},{path:"/customReportSet",name:"自定义报表设置",component:v()("apps/cloudDaily","customReportSet")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("apps/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("apps/trafficTask","taskRecord")},{path:"/taskView",name:"话务任务记录",component:v()("apps/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:v()("apps/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:v()("apps/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("apps/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("apps/badEvaluate","badEvaluateSet")},{path:"/taskList",name:"会话任务列表",component:v()("apps/trafficTask","taskList")},{path:"/newSession",name:"新建会话任务",component:v()("apps/trafficTask","newSession")},{path:"/taskSessionSet",name:"会话任务设置",component:v()("apps/trafficTask","taskSessionSet")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("apps/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("apps/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("apps/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/cardList",name:"卡券赠送",redirect:"/cardList",component:v()("apps/card","index"),children:[{path:"/cardList",name:"卡券列表",component:v()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:v()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:v()("apps/card","newCard")}]},{path:"/protectCard",name:"内购券",redirect:"/cardTemplate",component:v()("apps/protectCard","index"),children:[{path:"/cardTemplate",name:"卡券模板",component:v()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:v()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:v()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:v()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:v()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:v()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:v()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:v()("apps/protectCard","cardGetRecord")}]}]},{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:"/reviewSet",name:"审核设置",component:v()("reviewCenter","reviewSet")}]},{path:"/gic-error",name:"gic跳转失败页",component:v()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],S=new d.a({routes:g,scrollBehavior:function(){return{y:0}}}),D=a("zL8q"),w=a.n(D),k=a("Rf8U"),y=a.n(k),x=a("mtWM"),T=a.n(x),C=a("bOdI"),b=a.n(C),R=a("SJI6"),A=a.n(R);u.a.use(A.a);var E=new A.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(f={},b()(f,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(f,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(f,"title",function(e,t){e.title=t}),b()(f,"show",function(e,t){e.show=t}),b()(f,"saveAdd",function(e,t){e.addDepartment.push(t)}),b()(f,"saveEdit",function(e,t){e.editDepartment.push(t)}),b()(f,"saveDel",function(e,t){e.delDepartment.push(t)}),b()(f,"clearAdd",function(e){e.addDepartment=[]}),b()(f,"clearEdit",function(e){e.editDepartment=[]}),b()(f,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),f),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")}}}),L=(a("4qCZ"),a("tvR6"),a("uKUT"),a("Xcu2"),a("xtVA"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),n={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var o in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+o+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+o+"-"+n+" "+r+":"+p+":"+s}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=a<10?"0"+a:a;return t.getFullYear()+"-"+n}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a;return t.getFullYear()+"-"+o+"-"+n}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),o=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),p=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+o+"."+n+" "+r+":"+p+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(console.log(a),a<0)return"";var n=Math.floor(a/864e5);console.log(a,n);var o=a%864e5,r=o%36e5;return n+"天"+Math.floor(o/36e5)+"小时"+Math.floor(r/6e4)+"分"}}}),M=a("TUaa"),P=a.n(M),V=a("tyqE"),q=a.n(V),H=a("pRVe"),I=a.n(H),Y=a("XsK6"),j=a.n(Y),G=a("QRL9"),N=a.n(G),O=a("2Pnh"),F=a.n(O),J=a("l9mu"),U=a.n(J),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;F()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,n=t.height,o=a/592.28*841.89,r=n,p=0,s=592.28/a*n,i=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(r<o)c.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)c.addImage(i,"JPEG",0,p,595.28,s),p-=841.89,(r-=o)>0&&c.addPage();c.save(e+".pdf")})}}},z=a("/IwO"),K=a.n(z);p.a.polyfill(),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(X),Vue.use(j.a),Vue.use(N.a),Vue.use(I.a),Vue.use(q.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(w.a,{size:"large"}),Vue.use(y.a,T.a),Vue.axios.defaults.withCredentials=!0,o()(L).forEach(function(e){Vue.filter(e,L[e])}),S.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var n=window.location.origin;n.indexOf("localhost"),localStorage.getItem("userInfos"),"/"==e.path?a({path:"/login"}):a()}),new Vue({el:"#app",router:S,store:E,components:{App:i},template:"<App/>"})},Opzk:function(e,t,a){var n={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,41],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,65],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,56],"./apps/badEvaluate/index.vue":["AG22",0,23],"./apps/card/cardList.vue":["X5LE",0,50],"./apps/card/cardRecord.vue":["xDJN",0,14],"./apps/card/index.vue":["nV1L",0,30],"./apps/card/newCard.vue":["7/Zw",0,11],"./apps/cloudDaily/customReport.vue":["ak3k",0,31],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,4],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,13],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,17],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,59],"./apps/cloudDaily/index.vue":["4QyY",0,26],"./apps/cloudDaily/systemReport.vue":["J/6z",0,6],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,25],"./apps/cloudDaily/template/block.vue":["O3gZ",49],"./apps/cloudDaily/template/date-range.vue":["2WGr",51],"./apps/cloudDaily/template/image.vue":["8dpP",64],"./apps/cloudDaily/template/input.vue":["zHtI",71],"./apps/cloudDaily/template/select.vue":["rYZf",60],"./apps/customerApp/index.vue":["QHTa",0,73],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,39],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,48],"./apps/customerApp/memberShowSet.vue":["odfG",0,63],"./apps/index.vue":["K1Vb",0,54],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,58],"./apps/protectCard/cardPut.vue":["cD4x",0,40],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,55],"./apps/protectCard/cardStrategy.vue":["rUvh",0,19],"./apps/protectCard/cardTemplate.vue":["c7iB",0,38],"./apps/protectCard/index.vue":["aWmL",0,46],"./apps/protectCard/newCardPut.vue":["9db3",0,8],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,7],"./apps/protectCard/newCardTemp.vue":["tF0P",0,32],"./apps/quota/companyDaySet.vue":["NiGE",0,68],"./apps/quota/index.vue":["qSX4",0,47],"./apps/quota/monthList.vue":["fAFA",0,62],"./apps/quota/monthTask.vue":["NpHY",0,33],"./apps/quota/monthTaskDetail.vue":["YKf6",0,37],"./apps/quota/salerMonthDetail.vue":["+qr5",0,72],"./apps/quota/storeMonthTask.vue":["qWC+",0,67],"./apps/trafficTask/index.vue":["FmZU",0,27],"./apps/trafficTask/newSession.vue":["upTI",0,69],"./apps/trafficTask/taskDetail.vue":["XrDD",0,12],"./apps/trafficTask/taskList.vue":["FMQe",0,44],"./apps/trafficTask/taskRecord.vue":["m+x7",0,45],"./apps/trafficTask/taskSessionSet.vue":["lPa5",0,52],"./apps/trafficTask/taskView.vue":["w2fd",0,21],"./apps/trafficTask/taskViewDetail.vue":["SBUJ",0,42],"./apps/trafficTask/trafficTaskSet.vue":["OUXi",0,35],"./business/contacts.vue":["/W60",0,2],"./business/index.vue":["jPcV",0,70],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,66],"./business/syncLog.vue":["20P3",0,24],"./enterprise/adminList.vue":["zYBJ",0,53],"./enterprise/enterpriseSet.vue":["x5Fx",0,36],"./enterprise/index.vue":["m9dW",0,43],"./enterprise/material.vue":["q+Sm",0,5],"./errorPage/403.vue":["6XGN",20],"./errorPage/404.vue":["AejC",22],"./errorPage/500.vue":["FskK",16],"./errorPage/gic-error.vue":["Q3j/",18],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,15],"./overstore/index.vue":["Y55K",0,61],"./overstore/overStoreList.vue":["vuAV",0,34],"./reviewCenter/index.vue":["+lem",0,29],"./reviewCenter/reviewSet.vue":["6j9f",0,57],"./reviewCenter/reviewed.vue":["CLYF",0,10],"./reviewCenter/unreview.vue":["xCEU",0,9]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Opzk",e.exports=o},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},tvR6:function(e,t){},uKUT:function(e,t){},xtVA:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={76:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"75512f3d6a564da7391d",1:"06c4e42e62c1f75191f0",2:"0f2dc0a125db65c6cb83",3:"5e42b17bd49ad7dc0f49",4:"04076b888cab3ddda927",5:"bc55d052917326f0915e",6:"49975f0236d705152f51",7:"ece0a2d210892b176e55",8:"7d0a8e6532c58d0c2415",9:"03a703de9072658c77c5",10:"b8ec0f2315b8017fdfab",11:"9ab2bf5a78a227fc996b",12:"2533ae901282d7dffed7",13:"5b8bc0cb49f0d5af1fd0",14:"0225e369d82f24077aba",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"743c65492d195b3ef473",18:"22f8bd423b35e9202d27",19:"98b313a4cf9d88fe4cc2",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"4ad7713214fd3234337d",25:"9e5733792c18c643ff3a",26:"8193e985e04feeeffd23",27:"b5ca5d382b0cf2ab4d1d",28:"3e8945a98fbb147eef69",29:"dd6838c438e8e01143be",30:"bc35b5d8ade1439054e1",31:"b35760a5e984eafe16fb",32:"b62f155b98a474bf4511",33:"8bb755a2e4ff4bc9aa10",34:"93b49282fdccc322c7b8",35:"1e1c366da89de72e1273",36:"613f45ac68082928b7d0",37:"eb2f2f6d2d73849ad275",38:"f0ac2516052a94a95afa",39:"36ad49af4ad28511cb7e",40:"53d1aada48d77cf4670b",41:"b7276467d43930494f90",42:"cef9078afe497dcad23b",43:"6c9a1d1a6eedfba0c97d",44:"f909e37a29964c4b4b5e",45:"90626fb9530d8ce38a66",46:"9dad3123f2fc347c9f46",47:"d0292ad4a1c0a2fe6924",48:"bf0f43e67bca163a8825",49:"db237966421b9efea688",50:"f22cbf7598ba1005cbcc",51:"6a01d92850fef1ae9c8d",52:"6e6e1e27f98a4fa5c52d",53:"ddd17d265068b59417dd",54:"464b80f1793a2d65280c",55:"405bdfd8ae1f52bfe32d",56:"13ef31c7dc5349f44c33",57:"703f8d307172e3016a25",58:"8b45e9d696c27598cc95",59:"8c417a72038befa44f3e",60:"e10d02ed3d3fd3f20f60",61:"1c97fc1aa04abac9cbfd",62:"0a11009993db4a2531bf",63:"43ad42238163e27f5868",64:"2e546d02be42fac0c64d",65:"11f52cad03275c8aba4f",66:"9fa3ca5124aa2b5a85ec",67:"4d39ac45373e1725daf5",68:"1cc4f0da6ca2684e5b24",69:"78c1148df0648f724434",70:"d8b620c8d056d806ac23",71:"8ce9113b1568e9bf5537",72:"a6222ada9c9a2655c92a",73:"959fb844a60624eba321"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},f={76:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;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:"eb045893e896c09a9fb6",1:"06c4e42e62c1f75191f0",2:"1ded3351c936c7e2b879",3:"bca05727ef884114c4a3",4:"bbc2e6660ce281f123e4",5:"c52cc57010e275f22ea4",6:"62cff55135c206ebf276",7:"ece0a2d210892b176e55",8:"7d0a8e6532c58d0c2415",9:"c91115925dbf4b6fba8f",10:"5f6f4d23a4e5f8a24aaf",11:"f4ecb436083f4fbbbbfd",12:"22d87c926bbe11dc4625",13:"03d8a1919022ad589059",14:"a46bfacc2ced826cd3fb",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"4f06e15a1be1d41959ed",18:"4b0922e27b6b34b18611",19:"bccd8969ef4f4200d647",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"4ad7713214fd3234337d",25:"9e5733792c18c643ff3a",26:"429d681a351f6a7bd194",27:"ff873dd0f8703366981e",28:"282e28e67bab25e072da",29:"cebf604cf1225f47e634",30:"d27ad420bde5d91622bf",31:"cf36baf02e3e24a5f053",32:"78ab1d7e8b2b8d5c1a42",33:"e919a9859da510993c85",34:"93b49282fdccc322c7b8",35:"b7ed1be0435910e43e30",36:"718730e9492dec77b903",37:"ba3af0c3db2372aaec45",38:"8dacabcebbcf33c09d69",39:"2b1e6f52fed838285165",40:"a1ba1d1fe2d9bd9bd52c",41:"5de0b0767fe465cb318d",42:"cac405d22b8bbf065318",43:"ee53d0cfde34d3580803",44:"4967938c5970c3a1a190",45:"b38f04c6fb5166f3d4fa",46:"77005fb1df27e8d0dcfa",47:"27ddf80c8da77bf9c52d",48:"46491eec4d9b28b07f2a",49:"961ddd83c04214b4e2b0",50:"dea658673398013760b0",51:"877003195e2fe5be0b17",52:"23ce7f8f10e2d853d7e7",53:"ba6ef0c18ace8792ae0e",54:"63b7aa4a078d3fa4abf2",55:"15a71ced2f227bf920de",56:"a497356aa0b1b941f70e",57:"d469bc8b24527e760c46",58:"38bdda7d88dd6886fbed",59:"ed1cfc8b4f8a46cebdfb",60:"93a2ee002c3cd92e8e0e",61:"c72abb8753a2004d6800",62:"c30c874e8912380adfd7",63:"b62d98988a2f683868f1",64:"505a529e5cda237ea46f",65:"bb570dcb8ac1e63ede24",66:"1c2ba9a2a150aa32e90e",67:"4d39ac45373e1725daf5",68:"1cc4f0da6ca2684e5b24",69:"f8510ef775cfb18f6b0f",70:"fdc69ff252ea4ec575b8",71:"273b347c332157a94b9a",72:"a6222ada9c9a2655c92a",73:"a1b6c59b27a9901a96b8"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-05-21 09:29:54
* @LastEditTime: 2020-05-21 09:42:57
-->
<!--
<text-edit :categoryId="categoryId" @closeText="closeText" @submitText="submitText"></text-edit>
......@@ -20,7 +20,7 @@
<el-form-item label="内容" prop="materialContent">
<div class="material-content">
<!-- <textarea class="material-body" placeholder="请输入内容" id="textpanel" v-model="ruleForm.materialContent"></textarea> -->
<limit-textarea class="material-body" :inputWidth="440" :inputValue.sync="ruleForm.materialContent" :holder="'请输入内容'" :getByType="'char'" :maxLength="600"> </limit-textarea>
<limit-textarea class="material-body" :inputWidth="440" :inputValue.sync="ruleForm.materialContent" :holder="'请输入内容'" :getByType="'char'" :maxLength="1000"> </limit-textarea>
<el-popover placement="top" width="388" trigger="click">
<ul class="flex flex-wrap">
<li v-for="(item, index) in emojiList" :key="index + 'emoji'">
......
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