Commit 7dfe8b8b by 无尘

fix: 修改日报导出

parent 85d1e52c
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.272e2514cdd80c63e00f1a9314587ead.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.b2d925534a8367dc1e7e.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.51b246f4aa30c58591d0.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.9cba13834018247ffdb75878d57db4ef.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.221d0be6ff96da9fca9b.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.51b246f4aa30c58591d0.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([25],{Ujni:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),s=a.n(o),i=a("mvHQ"),r=a.n(i),n=a("P9l9"),l=a("Ch4/"),c=a("PI0u"),d={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:[],searchSelect:"",storeVisible:!1,stores:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||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"}]}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.dailyRuleForm.stores=[],e.searchSelect="",e.$nextTick(function(){e.getStoreData()})},exportForm:Object(c.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;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]||"",brandId:t.activeBrand};Object(n.b)("/haoban-app-daily-web/daily/batch-export",a).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.xls",a.style.display="none",a.href=URL.createObjectURL(t),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})})},toInput:Object(c.a)(function(e,t){if(!this.stores.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={brandId:e.brandId};Object(n.a)("/haoban-app-daily-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?l.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={brandId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:1,pageSize:1e5};Object(n.a)("/haoban-manage-web/store/findSimplePage",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}),e.stores=JSON.parse(r()(a.result.list))||[],void(e.storesCopy=JSON.parse(r()(a.result.list))||[]);l.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.storesCopy=[],this.searchSelect="",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())}},u={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:"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:"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:"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:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[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":""],on:{click:function(a){e.checkStore(t)}}},[a("span",[e._v(e._s(t.storeName))])])}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)]),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("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(d,u,!1,function(e){a("rRPL")},"data-v-3e9db6d4",null).exports,h=a("Ie7z"),f=a("Ke24"),m=a("LRn8"),b=a("3E4D"),v={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,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(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,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(e){if(this.showDialog=!1,!s()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)});var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delOptFlag:e.delOptFlag,reason:e.reason,chooseAllFlag:t.selectRadio};Object(n.e)("/haoban-app-daily-web/daily/batch-delete-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return b.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(n.b)("/haoban-app-daily-web/daily/batch-export-brand-task",o).then(function(e){if(!e.data)return l.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(t),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("dailyDetail?storeId="+t.storeId+"&appIcon= "+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)});var s={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(n.a)("/haoban-app-daily-web/daily/page-brand-task",s).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,!1;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())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},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:{dailyExport:p,commonDetailTop:f.a,vueSelectStore:h.a,multipleDel:m.a}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"云日报记录",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"云日报导出",name:"second"}})],1)],1),e._v(" "),"first"==e.activeName?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(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("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(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),e.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)]):e._e()])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,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",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),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:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._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.toDetail(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._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("daily-export",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var y=a("VU/8")(v,g,!1,function(e){a("ipuS")},"data-v-83b88894",null);t.default=y.exports},ipuS:function(e,t){},rRPL:function(e,t){}});
\ No newline at end of file
webpackJsonp([25],{"7AZu":function(e,t){},Ujni:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("P9l9"),r=a("Ch4/"),s=a("PI0u"),l={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:[],stores:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,o=t.minDate;e.choiceDateCopy=[o.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-2592e6,o=e.choiceDateCopy[0]+2592e6;return t.getTime()<a||t.getTime()>o||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"}]}}},methods:{changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.dailyRuleForm.stores=[],e.$nextTick(function(){e.getStoreData()})},exportForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postDailyExcel()})},500),postDailyExcel:function(){var e=this,t={filterStoreIds:e.dailyRuleForm.stores.join(",")||"",startDate:e.dailyRuleForm.dateRange[0]||"",endDate:e.dailyRuleForm.dateRange[1]||"",brandId:e.activeBrand};Object(i.b)("/haoban-app-daily-web/daily/batch-export-brand-task",t).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(t),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTemplateData:function(){var e=this,t={brandId:e.brandId};Object(i.a)("/haoban-app-daily-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?r.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={brandId:e.activeBrand,storeGroupId:e.activeGroup,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:1,pageSize:1e5};Object(i.a)("/haoban-manage-web/store/findSimplePage",t).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):e.stores=a.result.list||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",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:"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:"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:"daily-form-label"},[e._v("选择门店")]),e._v(" "),a("div",{staticClass:"daily-store-select"},[a("el-select",{staticClass:"w-350",attrs:{multiple:"","collapse-tags":"",placeholder:"请选择"},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},e._l(e.stores,function(e){return a("el-option",{key:e.value,attrs:{label:e.storeName,value:e.storeId}})})),e._v(" "),a("div",{staticClass:"show-select-num"},[e._v("已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店")])],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportForm("dailyRuleForm")}}},[e._v("导出日报")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(l,c,!1,function(e){a("7AZu")},"data-v-52a55f84",null).exports,u=a("Ie7z"),p=a("Ke24"),h=a("LRn8"),m=a("3E4D"),b={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,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(e){this.selectRadio=e},setSelectTab:function(e){this.activeTab=e.tabId},toInput:Object(s.a)(function(e,t){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},delDepart:function(e,t){t.splice(e,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(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)});var n={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:t.multipleSelection.map(function(e){return e.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",brandId:t.activeBrand,delOptFlag:e.delOptFlag,reason:e.reason,chooseAllFlag:t.selectRadio};Object(i.e)("/haoban-app-daily-web/daily/batch-delete-brand-task",n).then(function(e){var a=e.data;if(1==a.errorCode)return m.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},exportExcel:function(){var e=this,t=[],a=[];e.conditionObj.storeGroup.forEach(function(e){2==e.type&&t.push(e.groupId),3==e.type&&a.push(e.storeId)});var o={search:e.conditionObj.searchInput||"",filterStoreIds:a.join(",")||"",storeGroupIds:t.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand};Object(i.b)("/haoban-app-daily-web/daily/batch-export-brand-task",o).then(function(e){if(!e.data)return r.a.errorMsg("暂无数据"),!1;var t=new Blob([e.data],{type:"application/vnd.ms-excel"}),a=document.createElement("a");a.download="云日报记录.csv",a.style.display="none",a.href=URL.createObjectURL(t),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},showDialogLayer:function(e,t){this.selectType=e,this.changed=e,this.defaultStoreList=t,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(e){this.conditionObj.storeGroup=e,this.getTableList()},toDetail:function(e,t){this.$router.push("dailyDetail?storeId="+t.storeId+"&appIcon= "+this.$route.query.appIcon)},getTableList:function(e){var t=this,a=[],o=[];t.conditionObj.storeGroup.forEach(function(e){2==e.type&&a.push(e.groupId),3==e.type&&o.push(e.storeId)});var n={search:t.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",currentPage:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand};Object(i.a)("/haoban-app-daily-web/daily/page-brand-task",n).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],t.total=a.result.totalCount,!1;r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())},activeGroupId:function(e,t){e&&(this.activeGroup=e)}},mounted:function(){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:{dailyExport:d,commonDetailTop:p.a,vueSelectStore:u.a,multipleDel:h.a}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"common-detail-tab"},[a("el-tabs",{staticClass:"daily-set-tab",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"云日报记录",name:"first"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"云日报导出",name:"second"}})],1)],1),e._v(" "),"first"==e.activeName?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(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("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(t){e.showDialogLayer("store",e.conditionObj.storeGroup)}}},[e.conditionObj.storeGroup.length?e._e():a("span",{staticClass:"font-14 color-c0c4cc"},[e._v("请选择门店分组")]),e._v(" "),e.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[e._l(e.conditionObj.storeGroup,function(t,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(o,e.conditionObj.storeGroup)}}})])]})],2)]):e._e()])])]),e._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeStoreType},model:{value:e.conditionObj.storeType,callback:function(t){e.$set(e.conditionObj,"storeType",t)},expression:"conditionObj.storeType"}},e._l(e.storeTypeOptions,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",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.exportExcel}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),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:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.completedRate))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.noCompletedCount))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.overdueCount))]}}])}),e._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.toDetail(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._e(),e._v(" "),"second"==e.activeName?a("div",{staticClass:"daily-set-content boder-box"},[a("daily-export",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId}})],1):e._e(),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!1},on:{hideDialog:e.hideDialog}}),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:e.activeGroup,appScene:e.appScene,treeSet:e.storeTreeSet,selectType:"group",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(b,f,!1,function(e){a("ipuS")},"data-v-83b88894",null);t.default=g.exports},ipuS:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{"+yqn":function(t,a){},"1MkL":function(t,a){},DDw8:function(t,a){},HaZq:function(t,a){},RwXn:function(t,a){},VE2c:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("//Fk"),i=e.n(s),n=e("mvHQ"),r=e.n(n),l=e("DAYN"),o=e.n(l),c=e("Isrn"),d=e("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-contain"},[a("div",[a("p",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-item"},[a("div",{staticClass:"time-progress-title"},[a("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),a("p",{staticClass:"gic-pull-right"},[a("span",[this._v("15")]),this._v("/"),a("span",[this._v("30")])])]),this._v(" "),a("div",{staticClass:"time-progress-bottom"},[a("div",{staticClass:"time-progress-top"})])])}]};var m=e("VU/8")(v,p,!1,function(t){e("tEPL")},"data-v-01ac6975",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("指标")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("累计销售额")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("999,476,960")])]),t._v(" "),e("tr",[e("td",[t._v("达成率")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var _=e("VU/8")(f,u,!1,function(t){e("RwXn")},"data-v-1bd284e6",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),e("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),e("tr",[e("td",[t._v("新增会员")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var C=e("VU/8")(h,g,!1,function(t){e("X7jY")},"data-v-a0c49840",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"anomal-monitor-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[t._v(t._s(t.fieldName))])]),t._v(" "),e("div",{staticClass:"progress-contain"},[e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=e("VU/8")(b,y,!1,function(t){e("1MkL")},"data-v-ab0ccd68",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=e("VU/8")(I,w,!1,function(t){e("HaZq")},"data-v-1c3be8c1",null).exports,D={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},M={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var N=e("VU/8")(D,M,!1,function(t){e("DDw8")},"data-v-dbc8a866",null).exports,E=e("fPyK"),S=e("3E4D"),$=e("Ch4/"),P=e("PI0u"),R=e("P9l9"),L={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},brandId:"",setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[]}},created:function(){},methods:{returnBack:function(){this.changeRoute("/systemReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},clickItem:function(t){},onMove:function(t){var a=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(a.name)&&!a.fixed},itemMoveEnd:function(t){var a=this;a.isDragging=!1,a.selectKey="",a.selectKey=t.clone.dataset.name,a.tempaletDataList.forEach(function(t,e){var s;t.name==a.selectKey&&(s=t.parentCode,a[s].forEach(function(t,e){t.name==a.selectKey&&(t.fixed=!0)}))}),a.selectKey="",a.tempaletDataList=JSON.parse(r()(a.tempaletDataList)),a.$forceUpdate()},selectItem:function(t,a){this.currentIndex=a},deleteItem:function(t,a,e){this.tempaletDataList.splice(e,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[a].forEach(function(a,e){a.name==t&&(a.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var a={};for(var e in t){if(a[t[e]])return!0;a[t[e]]=!0}return!1},checkTag:function(t){var a={filedFlag:!0,filedRepeat:!1},e=[];return t.forEach(function(t,a){e.push(t.title)}),this.isRepeat(e)&&(a.filedRepeat=!0),a},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=16*Math.random()|0;return("x"==t?a:3&a|8).toString(16)})},saveAndBack:Object(P.a)(function(t){var a=JSON.parse(r()(this.tempaletDataList));return this.checkTag(a).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(a.forEach(function(t,a){t.sort=a}),a.length?void("save"===t?this.saveAllData(a):this.postPreview(a)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var a=this,e={brandId:a.brandId,templateContent:r()({setting:a.setting,data:t})};Object(R.e)("/haoban-app-daily-web/daily/save-system-template",e).then(function(t){var e=t.data;if(1==e.errorCode)return S.a.showmsg("保存成功","success"),void a.changeRoute("/systemReport?brandId="+a.brandId+"&appIcon="+a.$route.query.appIcon);$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var a=this,e={templateType:0,brandId:a.brandId,templateContent:r()(t)};Object(R.e)("/haoban-app-daily-web/daily/preview-template",e).then(function(t){var e=t.data,s=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;if(1==e.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+s+"&templateId="+e.result+"&brandId="+a.brandId;return a.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(a.dialogVisible=!0)}$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-template-items",{brandId:t.brandId,type:1}).then(function(a){var e=a.data;if(1==e.errorCode){var s=setTimeout(function(){t.handleAllFields(e.result),clearTimeout(s)},200);return!1}$.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleAllFields:function(t){var a=this;t.forEach(function(t,e){a.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",a.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",a.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",a.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",a.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",a.powerInfo.push(t))})},getInfo:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-system-template-data",{brandId:t.brandId}).then(function(a){var e=a.data;1!=e.errorCode?$.a.errorMsg(e):e.result&&(t.setting=String(e.result.setting),e.result.data&&e.result.data.length&&t.handleGetInfo(e.result.data))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleGetInfo:function(t){var a=this,e=JSON.parse(r()(t));a.setParent=[],e.forEach(function(t,e){t.fixed=!0,a.setParent.push(t.name)}),a.tempaletDataList=e}},watch:{isDragging:function(t){var a=this;t?a.delayedDragging=!0:a.$nextTick(function(){a.delayedDragging=!1})}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:m,storePerformance:_,errorMointor:x,membershipData:C,oldCustomerData:k,birthdayMembershipData:N,qrcodeDialog:E.a},mounted:function(){var t=this;t.brandId=t.$route.query.brandId,i.a.all([t.getInfo()]).then(function(a){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},O={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"template-wrap",style:{height: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:function(a){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(a){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("el-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[t._v("卡片")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name,"aria-hidden":"true"},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("生日会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("执行力")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.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:e("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(a){t.tempaletDataList=a},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(a,e){return s("li",{key:"li1"+e,class:["filed-item",t.currentIndex==e?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(a.fieldCode,e)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(a.name,a.parentCode,e)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=a.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",a.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(a.title))])]):t._e(),t._v(" "),"timeProgress"==a.name?s("time-progress",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataShop"==a.name?s("store-performance",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataNumber"==a.name?s("membership-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"anomalMonitor"==a.name?s("error-mointor",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"oldNumber"==a.name?s("old-customer-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"birthNumber"==a.name?s("birthday-membership-data",{attrs:{fieldName:a.title}}):t._e()],1)}))],2)])])])])]),t._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:t.rightName,callback:function(a){t.rightName=a},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[s("div",[s("el-radio",{attrs:{label:"0"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板上面")])],1),t._v(" "),s("div",{staticClass:"margin-t-15"},[s("el-radio",{attrs:{label:"1"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板下面")])],1)])])])],1)],1)])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(a){t.dialogVisible=a},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"template-title flex-1"},[a("img",{attrs:{src:e("LbEI"),alt:"logo"}}),this._v(" "),a("span",{staticClass:"template-title-span"},[this._v("系统报表设置")])])}]};var V=e("VU/8")(L,O,!1,function(t){e("+yqn")},"data-v-3e1630b2",null);a.default=V.exports},X7jY:function(t,a){},tEPL:function(t,a){}});
\ No newline at end of file
webpackJsonp([7],{"1MkL":function(t,a){},DDw8:function(t,a){},HaZq:function(t,a){},RwXn:function(t,a){},VE2c:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("//Fk"),i=e.n(s),n=e("mvHQ"),r=e.n(n),l=e("DAYN"),o=e.n(l),d=e("Isrn"),c=e("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-contain"},[a("div",[a("p",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"time-progress-item"},[a("div",{staticClass:"time-progress-title"},[a("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),a("p",{staticClass:"gic-pull-right"},[a("span",[this._v("15")]),this._v("/"),a("span",[this._v("30")])])]),this._v(" "),a("div",{staticClass:"time-progress-bottom"},[a("div",{staticClass:"time-progress-top"})])])}]};var m=e("VU/8")(v,p,!1,function(t){e("tEPL")},"data-v-01ac6975",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("指标")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("累计销售额")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("999,476,960")])]),t._v(" "),e("tr",[e("td",[t._v("达成率")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var _=e("VU/8")(f,u,!1,function(t){e("RwXn")},"data-v-1bd284e6",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"data-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("table",{staticClass:"data-number-table"},[e("thead",[e("tr",[e("th",{staticClass:"w_22"}),t._v(" "),e("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),e("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),e("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),e("tr",[e("td",[t._v("新增会员")]),t._v(" "),e("td",[t._v("473,960")]),t._v(" "),e("td",[t._v("473,960")])]),t._v(" "),e("tr",[e("td",[t._v("同比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])]),t._v(" "),e("tr",[e("td",[t._v("环比")]),t._v(" "),e("td",[t._v("100%")]),t._v(" "),e("td",[t._v("100%")])])])])}]};var C=e("VU/8")(h,g,!1,function(t){e("X7jY")},"data-v-a0c49840",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"anomal-monitor-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[t._v(t._s(t.fieldName))])]),t._v(" "),e("div",{staticClass:"progress-contain"},[e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),e("div",{staticClass:"progress-center"},[e("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[e("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[e("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(" "),e("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:"#1890ff","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),e("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#1890ff","font-size":"16px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),e("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=e("VU/8")(b,y,!1,function(t){e("1MkL")},"data-v-ab0ccd68",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=e("VU/8")(I,w,!1,function(t){e("HaZq")},"data-v-1c3be8c1",null).exports,D={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},E={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"birth-number-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"data-list"},[e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),e("div",{staticClass:"data-item"},[e("div",{staticClass:"data-progress"},[e("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),e("div",{staticClass:"data-bottom"},[e("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),e("div",{staticClass:"data-percent"},[e("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),e("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),e("div",{staticClass:"data-top"})])]),t._v(" "),e("div",{staticClass:"data-title"},[e("p",{staticClass:"gic-pull-right"},[t._v("环比"),e("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var M=e("VU/8")(D,E,!1,function(t){e("DDw8")},"data-v-dbc8a866",null).exports,N=e("fPyK"),S=e("3E4D"),$=e("Ch4/"),P=e("PI0u"),R=e("P9l9"),L={name:"staffRecordsTemplate",data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},brandId:"",setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[]}},created:function(){},methods:{returnBack:function(){this.changeRoute("/systemReport?brandId="+this.brandId+"&appIcon="+this.$route.query.appIcon)},clickItem:function(t){},onMove:function(t){var a=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(a.name)&&!a.fixed},itemMoveEnd:function(t){var a=this;a.isDragging=!1,a.selectKey="",a.selectKey=t.clone.dataset.name,a.tempaletDataList.forEach(function(t,e){var s;t.name==a.selectKey&&(s=t.parentCode,a[s].forEach(function(t,e){t.name==a.selectKey&&(t.fixed=!0)}))}),a.selectKey="",a.tempaletDataList=JSON.parse(r()(a.tempaletDataList)),a.$forceUpdate()},selectItem:function(t,a){this.currentIndex=a},deleteItem:function(t,a,e){this.tempaletDataList.splice(e,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[a].forEach(function(a,e){a.name==t&&(a.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var a={};for(var e in t){if(a[t[e]])return!0;a[t[e]]=!0}return!1},checkTag:function(t){var a={filedFlag:!0,filedRepeat:!1},e=[];return t.forEach(function(t,a){e.push(t.title)}),this.isRepeat(e)&&(a.filedRepeat=!0),a},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var a=16*Math.random()|0;return("x"==t?a:3&a|8).toString(16)})},saveAndBack:Object(P.a)(function(t){var a=JSON.parse(r()(this.tempaletDataList));return this.checkTag(a).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(a.forEach(function(t,a){t.sort=a}),a.length?void("save"===t?this.saveAllData(a):this.postPreview(a)):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var a=this,e={brandId:a.brandId,templateContent:r()({setting:a.setting,data:t})};Object(R.e)("/haoban-app-daily-web/daily/save-system-template",e).then(function(t){var e=t.data;if(1==e.errorCode)return S.a.showmsg("保存成功","success"),void a.changeRoute("/systemReport?brandId="+a.brandId+"&appIcon="+a.$route.query.appIcon);$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var a=this,e={templateType:0,brandId:a.brandId,templateContent:r()(t)};Object(R.e)("/haoban-app-daily-web/daily/preview-template",e).then(function(t){var e=t.data,s=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;if(1==e.errorCode){var i=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+s+"&templateId="+e.result+"&brandId="+a.brandId;return a.$refs.qrcodePreview.qrcode(i,"daily-preview"),void(a.dialogVisible=!0)}$.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-template-items",{brandId:t.brandId,type:1}).then(function(a){var e=a.data;if(1==e.errorCode)return t.handleAllFields(e.result),!1;$.a.errorMsg(e)}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleAllFields:function(t){var a=this;t.forEach(function(t,e){a.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",a.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",a.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",a.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",a.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",a.powerInfo.push(t))})},getInfo:function(){var t=this;Object(R.a)("/haoban-app-daily-web/daily/get-system-template-data",{brandId:t.brandId}).then(function(a){var e=a.data;1!=e.errorCode?$.a.errorMsg(e):e.result&&(t.setting=String(e.result.setting),e.result.data&&e.result.data.length&&t.handleGetInfo(e.result.data))}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},handleGetInfo:function(t){var a=this,e=JSON.parse(r()(t));a.setParent=[],e.forEach(function(t,e){t.fixed=!0,a.setParent.push(t.name)}),a.tempaletDataList=e}},watch:{isDragging:function(t){var a=this;t?a.delayedDragging=!0:a.$nextTick(function(){a.delayedDragging=!1})}},components:{draggable:o.a,AddInput:d.a,limitInput:c.a,timeProgress:m,storePerformance:_,errorMointor:x,membershipData:C,oldCustomerData:k,birthdayMembershipData:M,qrcodeDialog:N.a},mounted:function(){var t=this;t.brandId=t.$route.query.brandId,i.a.all([t.getInfo()]).then(function(a){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},O={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"template-wrap",style:{height: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:function(a){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(a){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("el-tabs",{model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[s("div",{staticClass:"filed-item-title"},[t._v("卡片")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name,"aria-hidden":"true"},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("生日会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("会员")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.title))])])}))],1),t._v(" "),s("div",{staticClass:"filed-item-title"},[t._v("执行力")]),t._v(" "),s("ul",[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(a){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(a,e){return s("li",{key:e,class:["compenent-item",1==a.fixed?"fixed-item":""],attrs:{"data-name":a.name},on:{mousedown:function(e){t.clickItem(a)}}},[s("span",[t._v(t._s(a.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:e("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(a){t.tempaletDataList=a},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(a,e){return s("li",{key:"li1"+e,class:["filed-item",t.currentIndex==e?"active-item":"","li-block"],on:{click:function(s){s.stopPropagation(),t.selectItem(a.fieldCode,e)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){s.stopPropagation(),t.deleteItem(a.name,a.parentCode,e)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=a.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",a.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(a.title))])]):t._e(),t._v(" "),"timeProgress"==a.name?s("time-progress",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataShop"==a.name?s("store-performance",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"dataNumber"==a.name?s("membership-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"anomalMonitor"==a.name?s("error-mointor",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"oldNumber"==a.name?s("old-customer-data",{attrs:{fieldName:a.title}}):t._e(),t._v(" "),"birthNumber"==a.name?s("birthday-membership-data",{attrs:{fieldName:a.title}}):t._e()],1)}))],2)])])])])]),t._v(" "),s("div",{staticClass:"template-cell template-cell-r"},[s("el-tabs",{model:{value:t.rightName,callback:function(a){t.rightName=a},expression:"rightName"}},[s("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[s("div",{attrs:{id:"edit-box"}},[s("div",{staticClass:"edit-view baby-info-flag baby-info"},[s("div",[s("el-radio",{attrs:{label:"0"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板上面")])],1),t._v(" "),s("div",{staticClass:"margin-t-15"},[s("el-radio",{attrs:{label:"1"},model:{value:t.setting,callback:function(a){t.setting=a},expression:"setting"}},[t._v("定义在日报自定义上报模板下面")])],1)])])])],1)],1)])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(a){t.dialogVisible=a},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"template-title flex-1"},[a("img",{attrs:{src:e("LbEI"),alt:"logo"}}),this._v(" "),a("span",{staticClass:"template-title-span"},[this._v("系统报表设置")])])}]};var V=e("VU/8")(L,O,!1,function(t){e("YHE2")},"data-v-07892d80",null);a.default=V.exports},X7jY:function(t,a){},YHE2:function(t,a){},tEPL:function(t,a){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={81:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"3c6a72763ba8dd753c2b",1:"0ebe3ead93207dc78a78",2:"949e969ff9243354980e",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"59a02095c1fc2882827e",6:"e9eb2044640fb2e362d3",7:"57af0bc90206c6098149",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"02c1f318efb8ad51c2f2",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"ba5230cee7ac3ae9c6e2",18:"0970ea79c17262cffb18",19:"0e7d5bb6c1dc4b40bc33",20:"6be27d5ec89f8a1c293b",21:"b0e7348ff74371924c3b",22:"dec9447a8c45f2a2c7bb",23:"7ecce59b275ffaebbc57",24:"4637a4566383d6e864cf",25:"35717a163e696b2f50e2",26:"8f0bb144b5e757399727",27:"4767fb6457468f0647c1",28:"140ad99228544036c969",29:"6c23e5ce31762cfce3c9",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"1a9ac0c12df7a396447f",34:"f9d53c31059aaff9b360",35:"80267d39d723d4d02341",36:"706cf2b1fed575cc2e7b",37:"8016d3ac07df8acaf73d",38:"401ecfbced781ca109ff",39:"45d0c177c91108351c01",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"bca08e89843b50550d0d",46:"98fb716c1e5a99ebdcf8",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"197cde68ad771fae4c5c",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"8d3253cd2f581e7ce20b",56:"bf6ca3213cca34608387",57:"38ec53bb17e31c729773",58:"396c075bf2e02574d826",59:"8669556909924307dc86",60:"0ec53183da96964b8e4c",61:"39a85469e87be40566f6",62:"44d1241f8d57451d0c10",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"ba49712f562eff6edbc3",69:"6262c1a9179f86d6e8cc",70:"d5759f121e5783b4c558",71:"95b66215f468ac6aa391",72:"b9aea07ebd1f712eee71",73:"820fe71d89d973ff8cf7",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={81:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"3c6a72763ba8dd753c2b",1:"0ebe3ead93207dc78a78",2:"949e969ff9243354980e",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"59a02095c1fc2882827e",6:"e9eb2044640fb2e362d3",7:"30389cf24ed1f6f0031a",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"02c1f318efb8ad51c2f2",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"ba5230cee7ac3ae9c6e2",18:"0970ea79c17262cffb18",19:"0e7d5bb6c1dc4b40bc33",20:"6be27d5ec89f8a1c293b",21:"b0e7348ff74371924c3b",22:"dec9447a8c45f2a2c7bb",23:"7ecce59b275ffaebbc57",24:"4637a4566383d6e864cf",25:"211a48999311513a0aed",26:"8f0bb144b5e757399727",27:"4767fb6457468f0647c1",28:"140ad99228544036c969",29:"6c23e5ce31762cfce3c9",30:"c6439b279653a45ce256",31:"8baa6bca929d1c9a38f6",32:"ec0bbd85e6d55909453d",33:"1a9ac0c12df7a396447f",34:"f9d53c31059aaff9b360",35:"80267d39d723d4d02341",36:"706cf2b1fed575cc2e7b",37:"8016d3ac07df8acaf73d",38:"401ecfbced781ca109ff",39:"45d0c177c91108351c01",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"bca08e89843b50550d0d",46:"98fb716c1e5a99ebdcf8",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"197cde68ad771fae4c5c",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"8d3253cd2f581e7ce20b",56:"bf6ca3213cca34608387",57:"38ec53bb17e31c729773",58:"396c075bf2e02574d826",59:"8669556909924307dc86",60:"0ec53183da96964b8e4c",61:"39a85469e87be40566f6",62:"44d1241f8d57451d0c10",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"ba49712f562eff6edbc3",69:"6262c1a9179f86d6e8cc",70:"d5759f121e5783b4c558",71:"95b66215f468ac6aa391",72:"b9aea07ebd1f712eee71",73:"820fe71d89d973ff8cf7",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -21,12 +21,34 @@
</el-form-item>
<el-form-item label="" prop="stores">
<p class="daily-form-label">选择门店</p>
<el-popover placement="bottom" title="" width="350" trigger="click" v-model="storeVisible">
<div class="daily-store-select">
<el-select class="w-350" v-model="dailyRuleForm.stores" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in stores" :key="item.value" :label="item.storeName" :value="item.storeId"> </el-option>
</el-select>
<div class="show-select-num">已经选择{{ dailyRuleForm.stores.length }}家门店</div>
<div class="select-search">
<el-input placeholder="请输入门店名称" v-model="searchSelect" style="width: 100%;" @keyup.native="value => toInput(value, searchSelect)" @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
</div>
<!-- <el-select class="w-350" v-model="dailyRuleForm.stores" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in stores" :key="item.storeId" :label="item.storeName" :value="item.storeId"> </el-option>
</el-select> -->
<div class="el-scrollbar define-search-select">
<div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;">
<ul class="el-scrollbar__view el-select-dropdown__list">
<li :class="['el-select-dropdown__item', item.select ? 'selected hover' : '']" v-for="item in stores" :key="item.storeId" @click="checkStore(item)">
<span>{{ item.storeName }}</span>
</li>
<li v-if="!stores.length" class="text-center"><span>暂无数据</span></li>
</ul>
</div>
<div class="el-scrollbar__bar is-horizontal"><div class="el-scrollbar__thumb" style="transform: translateX(0%);"></div></div>
<div class="el-scrollbar__bar is-vertical"><div class="el-scrollbar__thumb" style="transform: translateY(0%);"></div></div>
</div>
</div>
<div class="show-select-num w-350" slot="reference" @click="changeVisible">
已经选择{{ dailyRuleForm.stores.length }}家门店
<span class="el-input__suffix"
><span class="el-input__suffix-inner"><i :class="['el-select__caret el-input__icon el-icon-arrow-up', storeVisible ? 'is-reverse' : '']"></i></span
></span>
</div>
</el-popover>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="exportForm('dailyRuleForm')">导出日报</el-button>
......@@ -67,6 +89,8 @@ export default {
// 模板数据
templates: [],
// 门店数据
searchSelect: '',
storeVisible: false,
stores: [],
choiceDateCopy: [],
pickerOptions: {
......@@ -112,6 +136,7 @@ export default {
changeTemplate() {
const that = this;
that.dailyRuleForm.stores = [];
that.searchSelect = '';
that.$nextTick(() => {
that.getStoreData();
});
......@@ -121,32 +146,36 @@ export default {
const that = this;
that.$refs[formName].validate(valid => {
if (valid) {
that.postDailyExcel();
let templateId = '';
that.templates.forEach(ele => {
if (ele.storeType == that.dailyRuleForm.storeType) {
templateId = ele.dailyReportTemplateId;
}
});
that.postDailyExcel(templateId);
} else {
return false;
}
});
}, 500),
postDailyExcel() {
postDailyExcel(templateId) {
const that = this;
let para = {
filterStoreIds: that.dailyRuleForm.stores.join(',') || '', // 门店分组, 门店
storeIds: that.dailyRuleForm.stores.join(',') || '', // 门店分组, 门店
templateId: templateId,
startDate: that.dailyRuleForm.dateRange[0] || '',
endDate: that.dailyRuleForm.dateRange[1] || '',
brandId: that.activeBrand // 品牌 id
};
/* let urlSource = `search=${para.search}&filterStoreIds=${para.filterStoreIds}&storeGroupIds=${para.storeGroupIds}&storeType=${para.storeType}&startDate=${para.startDate}&endDate=${para.endDate}&brandId=${para.brandId}&currentPage=${para.currentPage}&pageSize=${para.pageSize}`;
window.open(`${window.location.origin}/haoban-app-daily-web/daily/batch-export-brand-task?${urlSource}`); */
postExcel('/haoban-app-daily-web/daily/batch-export-brand-task', para)
postExcel('/haoban-app-daily-web/daily/batch-export', para)
.then(res => {
if (!res.data) {
errMsg.errorMsg('暂无数据');
return false;
}
// let resData = res.data;
const blob = new Blob([res.data], { type: 'application/vnd.ms-excel' });
const fileName = `云日报记录.csv`;
const fileName = `云日报记录.xls`;
const elink = document.createElement('a');
elink.download = fileName;
elink.style.display = 'none';
......@@ -155,7 +184,6 @@ export default {
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
// errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
......@@ -166,10 +194,64 @@ export default {
},
/**
* 输入
*/
toInput: _debounce(function(e, value) {
const that = this;
if (!that.stores.length) {
return false;
}
if (value == '') {
that.stores = JSON.parse(JSON.stringify(that.storesCopy));
}
let filterData = JSON.parse(JSON.stringify(that.storesCopy)).filter(ele => {
return ele.storeName.includes(value);
});
that.stores = filterData;
}, 500),
/**
* 显示或隐藏门店列表
*/
/* eslint-disable */
changeVisible() {
// const that = this;
// that.storeVisible = !that.storeVisible;
},
/**
* 选择门店
*/
checkStore(item) {
const that = this;
if (item.select) {
item.select = false;
const index = that.dailyRuleForm.stores.indexOf(item.storeId);
that.dailyRuleForm.stores.splice(index, 1);
} else {
item.select = true;
that.dailyRuleForm.stores.push(item.storeId);
}
that.storesCopy.forEach(ele => {
if (that.dailyRuleForm.stores.includes(ele.storeId)) {
ele.select = true;
}
});
},
/**
* 清空
*/
clearSearch() {
const that = this;
that.stores = JSON.parse(JSON.stringify(that.storesCopy));
},
/**
* 获取自定义模板
*/
getTemplateData() {
let that = this;
const that = this;
let para = {
brandId: that.brandId
};
......@@ -211,7 +293,13 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.stores = resData.result.list || [];
if (resData.result.list) {
resData.result.list.forEach(ele => {
ele.select = false;
});
}
that.stores = JSON.parse(JSON.stringify(resData.result.list)) || [];
that.storesCopy = JSON.parse(JSON.stringify(resData.result.list)) || [];
return;
}
errMsg.errorMsg(resData);
......@@ -229,6 +317,8 @@ export default {
const that = this;
if (!!newData) {
that.dailyRuleForm.storeType = '';
that.storesCopy = [];
that.searchSelect = '';
that.activeBrand = newData;
that.getTemplateData();
}
......@@ -251,6 +341,29 @@ export default {
};
</script>
<style lang="less" scoped>
.select-search {
width: 100%;
// padding: 0 10px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.define-search-select {
ul {
li {
&.selected:after {
position: absolute;
right: 20px;
font-family: element-icons;
content: '\E611';
font-size: 12px;
font-weight: 700;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
}
}
.daily-export-content {
width: 500px;
-webkit-box-sizing: border-box;
......@@ -265,20 +378,35 @@ export default {
color: #909399;
}
.daily-store-select {
position: relative;
.show-select-num {
position: absolute;
left: 2px;
top: 3px;
width: 318px;
height: 28px;
position: relative;
display: inline-block;
font-size: inherit;
height: 32px;
line-height: 32px;
padding-left: 10px;
-webkit-appearance: none;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #606266;
.el-select__caret {
color: #c0c4cc;
font-size: 14px;
background: #fff;
pointer-events: none;
z-index: 2;
transition: transform 0.3s;
transform: rotate(180deg);
cursor: pointer;
&.is-reverse {
transform: rotate(0deg);
}
}
}
.daily-store-select {
position: relative;
}
}
</style>
......@@ -433,7 +433,10 @@ export default {
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
let timeAll = setTimeout(() => {
that.handleAllFields(resData.result);
clearTimeout(timeAll);
}, 200);
return false;
}
errMsg.errorMsg(resData);
......
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