Commit b44fa558 by 无尘

fix: 修改考勤组排班列表数据

parent cc86d79a
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.b5f3eb5f575c548fa734d4dce005896f.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.f889594c08161d97d651.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.239ad02542ffc06e142e.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.fb4b30efbd2074f18fd6b3061dee08a3.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.67a1e1b4f1d9694f4680.js></script><script type=text/javascript src=./static/js/vendor.0000e68e65e4a9dc3840.js></script><script type=text/javascript src=./static/js/app.232838654c7a81fb155e.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([71],{ON47:function(t,e){},gncU:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),o=a("PI0u"),i=a("P9l9"),r={name:"app-detail",components:{},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){var t=this;return{projectName:"",activeName:"first",activeBrand:this.brandId,activeGroup:this.activeGroupId,enterpriseId:JSON.parse(localStorage.getItem("userInfo")).enterpriseId,conditionObj:{attenceGroupName:"",choiceDate:""},tableData:[],currentPage:1,pageSize:20,total:0,workClassShow:!1,classesId:"",choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-2592e6,n=t.choiceDateCopy[0]+2592e6;return e.getTime()<a||e.getTime()>n||e.getTime()>Date.now()-864e4}return e.getTime()>Date.now()-864e4}}}},methods:{changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.choiceDate=[]),this.currentPage=1,this.getTableList()},toWorkGroupSet:function(){this.$router.push("/workGroupSet?appIcon="+this.$route.query.appIcon)},toEditWorkTime:function(t,e){this.$router.push("/workTimeManage?appIcon="+this.$route.query.appIcon+"&attenceGroupId="+e.attenceGroupId)},toTableSet:function(){this.workClassShow=!0,this.classesId=row.classesId},hideSetDialog:function(){this.workClassShow=!1,this.classesId="",this.currentPage=1,this.getTableList(this.brandId)},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getTableList(this.brandId)},handleSizeChange:function(t){this.pageSize=t,this.getTableList(this.brandId)},handleCurrentChange:function(t){this.currentPage=t,this.getTableList(this.brandId)},toUpdateSet:function(){this.currentPage=1,this.getTableList(this.brandId)},getTableList:function(t){var e=this;e.conditionObj.choiceDate||(e.conditionObj.choiceDate=[]);var a={brandId:t||e.activeBrand,enterpriseId:e.enterpriseId,userName:e.conditionObj.attenceGroupName,startDate:e.conditionObj.choiceDate[0],endDate:e.conditionObj.choiceDate[1],pageNum:e.currentPage,pageSize:e.pageSize};Object(i.e)("/haoban-app-attence-web/attence-total-day",a).then(function(t){var a=t.data;if(1==a.errorCode)return console.log(a.result.list),e.tabletData=a.result.list||[],void(e.total=a.result.total);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t)},activeGroupId:function(t,e){t&&(this.activeGroup=t)},tabType:function(t,e){}},mounted:function(){this.$emit("showTab","2"),this.brandId&&1!=this.brandId&&(this.activeBrand=this.brandId),this.getTableList(this.brandId)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"switch-wrap"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入考勤组/人员名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.attenceGroupName);var a}},model:{value:t.conditionObj.attenceGroupName,callback:function(e){t.$set(t.conditionObj,"attenceGroupName",e)},expression:"conditionObj.attenceGroupName"}}),t._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":t.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.choiceDate,callback:function(e){t.$set(t.conditionObj,"choiceDate",e)},expression:"conditionObj.choiceDate"}})],1),t._v(" "),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:t.toTableSet}},[t._v("设置报表")]),a("el-button",{staticClass:"p-l-10",attrs:{type:"primary"},on:{click:t.toUpdateSet}},[t._v("更新报表")])],1)])])]),t._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"考勤组名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.attenceGroupName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.personCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(1==e.row.attenceType?"固定排班":2==e.row.attenceType?"排班制":"自由排班"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"考勤时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[2!=e.row.attenceType||e.row.personCount?t._e():a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEditWorkTime(e.$index,e.row)}}},[t._v("编辑排班")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toEditGroup(e.$index,e.row)}}},[t._v("修改规则")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)])},staticRenderFns:[]};var s=a("VU/8")(r,c,!1,function(t){a("ON47")},"data-v-58cbf6e5",null);e.default=s.exports}});
\ No newline at end of file
webpackJsonp([71],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}}); webpackJsonp([72],{lpYn:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("lpYn")},"data-v-51432d8f",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([72],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}}); webpackJsonp([73],{"6zFj":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),c=e("3E4D"),s=e("Ch4/"),o=e("PI0u"),i=e("P9l9"),r={name:"contactPermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"通讯录控制",path:""}],contactHideFlag:!1}},methods:{saveSet:Object(o.a)(function(){var t=this,a={contactHideFlag:t.contactHideFlag?"1":"0"};Object(i.e)("/haoban-manage-web/contact/save-contact-setting",a).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):c.a.showmsg("保存成功","success")}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},300),getSetData:function(){var t=this;Object(i.e)("/haoban-manage-web/contact/find-contact-setting",{}).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.contactHideFlag=1==e.result.contactHideFlag}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},mounted:function(){this.getSetData()},components:{navCrumb:n.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"storePermission-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{},[e("div",{staticClass:"check-box-wrap inline-block vertical-top"},[e("el-checkbox",{model:{value:t.contactHideFlag,callback:function(a){t.contactHideFlag=a},expression:"contactHideFlag"}},[t._v("隐藏通讯录模块")])],1),t._v(" "),e("div",{staticClass:"tip-text-wrap w-440 inline-block vertical-top"},[t._v("注:隐藏后,APP将不展示通讯录,通讯录仍可用,但无法进行通讯录及门店管理,以及添加员工操作。所有通讯录内容仅可在PC管理后台进行操作和管理。")])]),t._v(" "),e("div",[e("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])]),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var l=e("VU/8")(r,d,!1,function(t){e("R1ch")},"data-v-5090dca8",null);a.default=l.exports},R1ch:function(t,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([76],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}}); webpackJsonp([77],{"8kVC":function(e,t){},ZxDn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),s=a.n(o),i=a("Ke24"),c=a("Ch4/"),l=a("PI0u"),u=a("P9l9"),p={components:{commonDetailTop:i.a},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",topMenuData:[{id:"1",name:"指标管理",path:"/quota?appIcon="+this.$route.query.appIcon},{id:"2",name:"月指标",path:""}],yearList:[],year:"",tableList:[],tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getYearList()}},methods:{handleSizeChange:function(e){this.pageSize=e,this.apiMonthPerformanceList()},handleCurrentChange:function(e){this.currentPage=e,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:a.brandId},Object(u.a)("/haoban-app-performance-web/performance/get-years",n);case 3:r=t.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(e){a.yearList.push({id:e,label:e+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):c.a.errorMsg(o);case 6:case"end":return t.stop()}var n},t,e)}))()},apiMonthPerformanceList:function(){var e=this;return s()(n.a.mark(function t(){var a,r,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e,t.next=3,n={brandId:e.brandId,year:e.year},Object(u.a)("/haoban-app-performance-web/performance/query-month-performance",n);case 3:r=t.sent,1==(o=r.data).errorCode&&(o.result.length&&o.result.forEach(function(e){e.totalPerformance=Object(l.d)(Number(e.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 6:case"end":return t.stop()}var n},t,e)}))()}},mounted:function(){this.$emit("showTab","11"),this.brandId&&this.getYearList()}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"m-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:e.changeYear},model:{value:e.year,callback:function(t){e.year=t},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),e._v(" "),e._l(e.yearList,function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.label}})})],2),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableList}},[e._l(e.tabelHeader,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.settingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/storeMonthTask?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon+" ")}}},[e._v("门店月指标")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.$router.push("/companyDaySet?yearMonth="+t.row.yearMonth+"&appIcon="+e.$route.query.appIcon)}}},[e._v("商户日权重")])]}}])})],2),e._v(" "),0!=e.tableList.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)},staticRenderFns:[]};var d=a("VU/8")(p,h,!1,function(e){a("8kVC")},"data-v-46bca8a6",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([78],{"fIe/":function(t,e){},t0b0:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("fIe/")},"data-v-3fd29910",null);e.default=l.exports}}); webpackJsonp([79],{"fIe/":function(t,e){},t0b0:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("fIe/")},"data-v-3fd29910",null);e.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([79],{"Qdk+":function(t,e){},XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("Qdk+")},"data-v-396d560e",null);e.default=u.exports}}); webpackJsonp([80],{"Qdk+":function(t,e){},XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.e)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.e)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("Qdk+")},"data-v-396d560e",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([81],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("IIkM")},"data-v-35e62cb4",null);e.default=u.exports},IIkM:function(t,e){}}); webpackJsonp([82],{"5x7s":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),i=a("PI0u"),o=a("Ch4/"),c=a("3E4D"),r=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"任务下发设置"}],activeId:"1",setData:{status:!1,time:"12:00"}}},computed:{},methods:{saveSet:Object(i.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,status:t.setData.status?"1":"0",time:t.setData.time};Object(r.e)("/haoban-app-daily-web/daily/create-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand};Object(r.e)("/haoban-app-daily-web/daily/get-setting",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.setData.status=1==a.result.status,void(t.setData.time=a.result.time);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","22"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报开关设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("开启后,日报将定时发送")]),t._v(" "),a("div",{},[a("el-switch",{attrs:{"active-text":" ","inactive-text":" "},model:{value:t.setData.status,callback:function(e){t.$set(t.setData,"status",e)},expression:"setData.status"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-10 font-w-500"},[t._v("日报每日下发时间设置")]),t._v(" "),a("div",{staticClass:"font-14 color-606266 m-b-16"},[t._v("该事件设置将在次日生效,为避免影响当日日报的发送,请在日报发送后设置")]),t._v(" "),a("div",[a("el-time-select",{staticClass:"w-118",attrs:{editable:!1,clearable:!1,"picker-options":{start:"00:00",step:"00:15",end:"23:45"},placeholder:"选择时间"},model:{value:t.setData.time,callback:function(e){t.$set(t.setData,"time",e)},expression:"setData.time"}})],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("IIkM")},"data-v-35e62cb4",null);e.default=u.exports},IIkM:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([85],{"/IZy":function(t,e){},FB5x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",appIcon:"icon-ribao",activeSelTab:"11",activeTab:"11",tabListData:[{tabId:"1",tabName:"指标管理",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"月指标",icon:""},{tabId:"13",tabName:"月指标任务",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":case"12":this.changeRoute("monthList?appIcon="+this.$route.query.appIcon);break;case"13":this.changeRoute("monthTask?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("/IZy")},"data-v-2d226637",null);e.default=r.exports}}); webpackJsonp([86],{"/IZy":function(t,e){},FB5x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",appIcon:"icon-ribao",activeSelTab:"11",activeTab:"11",tabListData:[{tabId:"1",tabName:"指标管理",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"月指标",icon:""},{tabId:"13",tabName:"月指标任务",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":case"12":this.changeRoute("monthList?appIcon="+this.$route.query.appIcon);break;case"13":this.changeRoute("monthTask?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?a("keep-alive",[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("/IZy")},"data-v-2d226637",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([90],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("Z64I")},null,null);t.default=i.exports},Z64I:function(e,t){}}); webpackJsonp([91],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("Z64I")},null,null);t.default=i.exports},Z64I:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([92],{"+Qrr":function(e,t){},RQuk:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("nsZK"),c=a("P9l9"),i=a("Ch4/"),s={name:"index",components:{storeTreeSelect:n.a},data:function(){var e=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],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]-26784e5,o=e.choiceDateCopy[0]+26784e5;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},brandId:"",activeGroupId:"",storeGroupIds:[]}},methods:{exportData:function(){this.postExportData()},postExportData:function(){var e=this,t={date:e.choiceDate,storeIds:e.storeGroupIds};Object(c.a)("/haoban-manage-web/home/find-quick-entry",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(r()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.currentPage=1,this.storeGroupIds=e},getStoreData:function(){var e=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{}).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreData()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sign-contain"},[a("div",{staticClass:"sign-content border-box"},[a("div",[a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("store-tree-select",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId},on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导 出")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(e){a("+Qrr")},"data-v-14d8f766",null);t.default=u.exports}}); webpackJsonp([93],{"+Qrr":function(e,t){},RQuk:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("nsZK"),c=a("P9l9"),i=a("Ch4/"),s={name:"index",components:{storeTreeSelect:n.a},data:function(){var e=this;return{projectName:"haoban-manage-web",contentHeight:"0px",choiceDate:[],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]-26784e5,o=e.choiceDateCopy[0]+26784e5;return t.getTime()<a||t.getTime()>o||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},brandId:"",activeGroupId:"",storeGroupIds:[]}},methods:{exportData:function(){this.postExportData()},postExportData:function(){var e=this,t={date:e.choiceDate,storeIds:e.storeGroupIds};Object(c.a)("/haoban-manage-web/home/find-quick-entry",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeDate:function(e){e?this.choiceDateCopy=JSON.parse(r()(this.choiceDate)):(this.choiceDateCopy=[],this.choiceDate=[])},checkStoreGroupIds:function(e){this.currentPage=1,this.storeGroupIds=e},getStoreData:function(){var e=this;Object(c.a)("/haoban-manage-web/home/find-quick-entry",{}).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):e.entryData=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getStoreData()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sign-contain"},[a("div",{staticClass:"sign-content border-box"},[a("div",[a("el-date-picker",{staticClass:"m-l-10",attrs:{"picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.choiceDate,callback:function(t){e.choiceDate=t},expression:"choiceDate"}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("store-tree-select",{attrs:{brandId:e.brandId,activeGroupId:e.activeGroupId},on:{checkStoreGroupIds:e.checkStoreGroupIds}})],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:e.exportData}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导 出")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(s,d,!1,function(e){a("+Qrr")},"data-v-14d8f766",null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([95],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){}}); webpackJsonp([96],{"79Bk":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("Dy6z")},"data-v-05d718c8",null);e.default=l.exports},Dy6z:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([96],{"/rje":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"我的顾客",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"},{tabId:"3",tabName:"聊天记录",icon:"icon-liaotianjilu"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("memeberBaseSet?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("onlineChatSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("chatRecord?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("cxXI")},"data-v-03f543c4",null);e.default=r.exports},cxXI:function(t,e){}}); webpackJsonp([97],{"/rje":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),i=a("fvdr"),c=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"我的顾客",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"},{tabId:"3",tabName:"聊天记录",icon:"icon-liaotianjilu"}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("memeberBaseSet?appIcon="+this.$route.query.appIcon);break;case"2":this.changeRoute("onlineChatSet?appIcon="+this.$route.query.appIcon);break;case"3":this.changeRoute("chatRecord?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:i.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("cxXI")},"data-v-03f543c4",null);e.default=r.exports},cxXI:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([97],{BVw6:function(t,e){},Knd1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),c=a("fvdr"),i=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:window.unescape(this.$route.query.appIcon),activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"22",tabName:"任务下发设置",icon:""},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord?appIcon="+this.$route.query.appIcon);break;case"2":case"21":case"211":this.changeRoute("systemReport?appIcon="+this.$route.query.appIcon);break;case"212":this.changeRoute("customReport?appIcon="+this.$route.query.appIcon);break;case"22":this.changeRoute("taskAssign?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("BVw6")},"data-v-03418ad6",null);e.default=r.exports}}); webpackJsonp([98],{BVw6:function(t,e){},Knd1:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),c=a("fvdr"),i=a("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:window.unescape(this.$route.query.appIcon),activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"22",tabName:"任务下发设置",icon:""},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord?appIcon="+this.$route.query.appIcon);break;case"2":case"21":case"211":this.changeRoute("systemReport?appIcon="+this.$route.query.appIcon);break;case"212":this.changeRoute("customReport?appIcon="+this.$route.query.appIcon);break;case"22":this.changeRoute("taskAssign?appIcon="+this.$route.query.appIcon)}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left w-157",style:{"min-height":t.bgHeight}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("BVw6")},"data-v-03418ad6",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([98],{z8Gq:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}}); webpackJsonp([99],{z8Gq:function(l,e,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u("VU/8")(null,null,!1,null,null,null);e.default=n.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([99],{gncU:function(l,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var u=n("VU/8")(null,null,!1,null,null,null);e.default=u.exports}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},a={103:0};function b(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,b){c=a[e]=[f,b]});c[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"36e388b14bfebfcf9bc7",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"9cf830eb000e3ac61f70",15:"f51dc9afae8e0fc3fa31",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"447fe4adcec70a86ea14",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"b1832faa7c26cd1e9d72",25:"550aafc88ac4d0c8a14f",26:"e0ba8ad05ad14e4c0abc",27:"80efeaa8fe902850d85c",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"9cc352d1f452ed39c7a4",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"1980019316ed757bf533",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"52567857be12ee835446",41:"7264f33d2c3cf44d63a5",42:"9cacb9b0dc2a83864afe",43:"2324b3155ba3e3fe67b2",44:"a899f81af77b5d1b6daf",45:"d4e2ecd5b9efc4c430de",46:"03ae66bfca82c8ffa033",47:"393792502b1faedfd75b",48:"e413bb6ddbf0598e75ed",49:"8be0d341bf9560ab91d8",50:"edc711153403cc5a63ed",51:"5996349b24bab60188ec",52:"4b670e09f79ed49e862d",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"b1523e0c22d867c87eda",72:"dffbfdc50edee0a37b74",73:"2cfa3df2a4d9908af690",74:"33a011eb8ce2cede3356",75:"182e2fec82acc1a01fe6",76:"07511bf88c8bf81afe07",77:"7a67beffe26b577acc34",78:"2a7e2e71b97bc2f45ada",79:"f1314bb05b3eeb7443cf",80:"bd347a0b2049bbbbe86f",81:"67265c8eb7ea0a25b467",82:"34d4239b148064e99e0b",83:"e4c88df18fbb55fbf2aa",84:"9fdd78847cd8cee02ef6",85:"cdf84356f6bf3dff7560",86:"9327846338dc4a575adf",87:"8cf5b4d0f7a8a2833414",88:"136f98a67c7840e692e2",89:"efe4f1f2709c6221cd8e",90:"f965c0ab799d944946de",91:"432e6232fb6d5ad3498c",92:"40e90149e575b118d77b",93:"96b6ac9b6398b7d7360f",94:"3b3320da6662e7e5c1cb",95:"04507f6fadd31b01a746",96:"d4a4beef007fa347bd93",97:"8b0f08b3974b32d7bc2a",98:"69c8efc82743796dc255",99:"58cc1884c4f80303999a",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,c,f){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={103:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"ab616832b6f6019a8690",1:"fe9dec1f31b04053fd7e",2:"54aabab28c7735d34c10",3:"b7e6d57d97174b75b050",4:"11254d7e3a102121b8ec",5:"330c91a0a9fe8490c0e7",6:"124ad8222f7b043b44ae",7:"ebad93a8c5bffffd9e98",8:"f1c9fb5c9212483138d8",9:"b5aae16b3951516573ad",10:"ebbed2d956a1376f014a",11:"59c7813cc972f62b1d18",12:"879536ae7ce46f0c54ec",13:"57e51fc1b6342003f25d",14:"9cf830eb000e3ac61f70",15:"2d7e130b0ac15815db5e",16:"f483f95dbac654c7de5a",17:"ff6edf624b982c354977",18:"447fe4adcec70a86ea14",19:"d7d09ae4564d64842009",20:"455fd80bd8af15457c57",21:"c1b5e15e28768af52654",22:"2a873e819c6c369d5cd1",23:"d2380bf3c276e741313b",24:"b1832faa7c26cd1e9d72",25:"550aafc88ac4d0c8a14f",26:"e0ba8ad05ad14e4c0abc",27:"80efeaa8fe902850d85c",28:"70cb3f87bd69723dbd41",29:"c5bb15e8e1bd17cdc0f7",30:"6edaf5eadaf0d00bf7cf",31:"20f69d688df3827843c5",32:"0c7863fa05e5c75053c3",33:"f4e32fc6846aa744ee48",34:"0fb2eb67d47b9ecbd519",35:"878b1286f80a30dd0234",36:"2cadbd4ded3457625f52",37:"8dc3e1f0f3e416135406",38:"9f4a46d2ce3c9477a06b",39:"b33ea830129fb895dd77",40:"52567857be12ee835446",41:"7264f33d2c3cf44d63a5",42:"9cacb9b0dc2a83864afe",43:"2324b3155ba3e3fe67b2",44:"a899f81af77b5d1b6daf",45:"d4e2ecd5b9efc4c430de",46:"03ae66bfca82c8ffa033",47:"393792502b1faedfd75b",48:"e413bb6ddbf0598e75ed",49:"8be0d341bf9560ab91d8",50:"edc711153403cc5a63ed",51:"5996349b24bab60188ec",52:"4b670e09f79ed49e862d",53:"ec91f2b143d0b1e708b5",54:"31eed9c38748896262d1",55:"4f96191ae2c44c6f18f7",56:"99063bd3b07926595af4",57:"ba6530916d934b70d218",58:"2241679269f18e7f14c3",59:"5c336f6f4d119300c1d8",60:"d43c13d5c29feb45e864",61:"0806aac37bd2b86e8bc2",62:"8ef5c75f77376ecd8873",63:"bbe4da77ef31a0aa9150",64:"f26939887c305ec6f7fc",65:"069ccaf5f8e5b5f3c59d",66:"5f0382c9cb76b57ba778",67:"745b9621e5297c575b33",68:"aaaa125fb978b59c2cbf",69:"bb6a8bab41cac9f11bd4",70:"a226d330de7ebb2a4c5f",71:"9551ae81326c57064dec",72:"cb1b3985b92be4556fc1",73:"b6b1fb51b601c0fafcda",74:"6206c00744e77bc84fec",75:"93eb5a61daaa3a1df425",76:"78e5a422e9fecbbd255a",77:"b3f7cf4d2b54d306c522",78:"1fc3472c5f95a0a66979",79:"69811ba75d1fceae9737",80:"12442b543aff65f2c05d",81:"00a94b58ac2affb758dc",82:"1fa56152d6bdcfd4ec14",83:"976088a6ee120b8caa17",84:"45dae077c86a1a0050ff",85:"0c7635a15cceae31d981",86:"d0d0607a424156f2d88d",87:"aee44c25b8d252c44b6e",88:"9617b600ff0f73479a43",89:"8d513b9c9d7970a612c0",90:"57319965505945b3ae7e",91:"446342439ce97b19c84f",92:"09a5823b00d6180576b9",93:"e801fdd8bbd27a68d8ee",94:"0667cc1720cd56e116d9",95:"a08b7e730d57a7f096a5",96:"37acaa2f6f812ee7216b",97:"84d009afd65fa1e0cb42",98:"d54541a3a62bae3a075b",99:"b2c0b52f472168172ad5",102:"2c7e1d628bd2f4ac709c"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-11-07 17:30:04 * @Date: 2019-11-07 17:30:04
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-20 16:26:32 * @LastEditTime : 2019-12-21 11:29:55
--> -->
<!-- <!--
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</template> </template>
<template v-for="(item, index) in defaultData"> <template v-for="(item, index) in defaultData">
<li class="day-class-item p-lr-20" :key="index + 'defaultClass'" @click.stop="daySet(item)"> <li class="day-class-item p-lr-20" :key="index + 'defaultClass'" @click.stop="daySet(item)">
<p :class="['class-item', item.id == '0' ? 'class-rest' : 'class-clear']">{{ item.classesName }}</p> <p :class="['class-item', item.classesId == '0' ? 'class-rest' : 'class-clear']">{{ item.classesName }}</p>
</li> </li>
</template> </template>
</ul> </ul>
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
return []; return [];
} }
}, },
workDate: { weekDay: {
type: Number, type: Number,
default() { default() {
return new Date().getTime(); return new Date().getTime();
...@@ -97,11 +97,11 @@ export default { ...@@ -97,11 +97,11 @@ export default {
}, },
defaultData: [ defaultData: [
{ {
id: '0', classesId: '-1',
classesName: '休息' classesName: '休息'
}, },
{ {
id: '-2', classesId: '-2',
classesName: '清空' classesName: '清空'
} }
] ]
...@@ -127,13 +127,13 @@ export default { ...@@ -127,13 +127,13 @@ export default {
const that = this; const that = this;
// console.log(item); // console.log(item);
if (that.itemSchedule.schedules && that.itemSchedule.schedules.length) { if (that.itemSchedule.schedules && that.itemSchedule.schedules.length) {
let arr = that.itemSchedule.schedules.map(ele => ele.workDate); let arr = that.itemSchedule.schedules.map(ele => ele.weekDay);
if (arr.includes(that.workDate)) { if (arr.includes(that.weekDay)) {
that.itemSchedule.schedules.forEach(ele => { that.itemSchedule.schedules.forEach(ele => {
if (ele.workDate == that.workDate) { if (ele.weekDay == that.weekDay) {
ele.classesName = item.classesName; ele.classesName = item.classesName;
ele.classes = { ele.classes = {
id: item.id, classesId: item.classesId,
classesName: item.classesName classesName: item.classesName
}; };
ele.isRest = true; ele.isRest = true;
...@@ -144,12 +144,12 @@ export default { ...@@ -144,12 +144,12 @@ export default {
let newData = JSON.parse(JSON.stringify(that.itemSchedule.schedules)); let newData = JSON.parse(JSON.stringify(that.itemSchedule.schedules));
newData.push({ newData.push({
classes: { classes: {
id: item.id, classesId: item.classesId,
classesName: item.classesName classesName: item.classesName
}, },
classesName: item.classesName, classesName: item.classesName,
isRest: true, isRest: true,
workDate: that.workDate weekDay: that.weekDay
}); });
that.itemSchedule.schedules = JSON.parse(JSON.stringify(newData)); that.itemSchedule.schedules = JSON.parse(JSON.stringify(newData));
// console.log('false:', that.itemSchedule); // console.log('false:', that.itemSchedule);
...@@ -158,18 +158,15 @@ export default { ...@@ -158,18 +158,15 @@ export default {
// console.log('null', that.itemSchedule); // console.log('null', that.itemSchedule);
that.$set(that.itemSchedule, 'schedules', []); that.$set(that.itemSchedule, 'schedules', []);
that.itemSchedule.schedules.push({ that.itemSchedule.schedules.push({
classes: { classesId: item.classesId,
id: item.id,
classesName: item.classesName
},
classesName: item.classesName, classesName: item.classesName,
isRest: true, isRest: true,
workDate: that.workDate weekDay: that.weekDay
}); });
} }
// 根据时间戳排序 // 根据时间戳排序
that.itemSchedule.schedules.sort(function(a, b) { that.itemSchedule.schedules.sort(function(a, b) {
return a.workDate - b.workDate; return a.weekDay - b.weekDay;
}); });
// console.log('all:[]', that.itemSchedule); // console.log('all:[]', that.itemSchedule);
that.$forceUpdate(); that.$forceUpdate();
...@@ -180,7 +177,7 @@ export default { ...@@ -180,7 +177,7 @@ export default {
dayWeekSet() { dayWeekSet() {
const that = this; const that = this;
// 当前选择的几号,还有轮询排班周期 // 当前选择的几号,还有轮询排班周期
let today = new Date(that.workDate).getDate(); let today = new Date(that.weekDay).getDate();
let newDates = []; // 当前成员 新的需要重新设置的日期数据 let newDates = []; // 当前成员 新的需要重新设置的日期数据
for (let index = today - 1; index < that.dates.length; index++) { for (let index = today - 1; index < that.dates.length; index++) {
newDates.push(that.dates[index]); newDates.push(that.dates[index]);
...@@ -189,25 +186,22 @@ export default { ...@@ -189,25 +186,22 @@ export default {
// 然后在这个日期区间内按照排班周期设置 // 然后在这个日期区间内按照排班周期设置
newDates.forEach((date, index) => { newDates.forEach((date, index) => {
date.classesName = that.cycleData[0].itemList[index % cycleLength].classesName; date.classesName = that.cycleData[0].itemList[index % cycleLength].classesName;
date.classes = { date.classesId = that.cycleData[0].itemList[index % cycleLength].classesId;
id: that.cycleData[0].itemList[index % cycleLength].classId,
classesName: that.cycleData[0].itemList[index % cycleLength].classesName
};
date.isRest = true; date.isRest = true;
date.workDate = date.timeStamp; date.weekDay = date.timeStamp;
}); });
// 把小于当前日期已经设置的排班全部添加到周期设置的数据中(newDates) // 把小于当前日期已经设置的排班全部添加到周期设置的数据中(newDates)
if (!that.itemSchedule.hasOwnProperty('schedules')) { if (!that.itemSchedule.hasOwnProperty('schedules')) {
that.$set(that.itemSchedule, 'schedules', []); that.$set(that.itemSchedule, 'schedules', []);
} }
that.itemSchedule.schedules.forEach((ele, key) => { that.itemSchedule.schedules.forEach((ele, key) => {
if (ele.workDate < that.workDate) { if (ele.weekDay < that.weekDay) {
newDates.push(ele); newDates.push(ele);
} }
}); });
// 重新根据时间戳排序 // 重新根据时间戳排序
newDates.sort(function(a, b) { newDates.sort(function(a, b) {
return a.workDate - b.workDate; return a.weekDay - b.weekDay;
}); });
that.itemSchedule.schedules = JSON.parse(JSON.stringify(newDates)); that.itemSchedule.schedules = JSON.parse(JSON.stringify(newDates));
that.$set(that.itemSchedule, 'schedules', JSON.parse(JSON.stringify(newDates))); that.$set(that.itemSchedule, 'schedules', JSON.parse(JSON.stringify(newDates)));
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors : 无尘
* @LastEditTime: 2019-12-11 09:35:21 * @LastEditTime : 2019-12-21 09:56:07
*/ */
import Vue from 'vue'; import Vue from 'vue';
import Router from 'vue-router'; import Router from 'vue-router';
...@@ -421,11 +421,11 @@ export const constantRouterMap = [ ...@@ -421,11 +421,11 @@ export const constantRouterMap = [
name: '日统计', name: '日统计',
component: _import('enterpriseApp/dailyAttendance', 'dayStatistics') component: _import('enterpriseApp/dailyAttendance', 'dayStatistics')
}, },
{ /* {
path: '/monthStatistics', path: '/monthStatistics',
name: '月统计', name: '月统计',
component: _import('enterpriseApp/dailyAttendance', 'monthStatistics') component: _import('enterpriseApp/dailyAttendance', 'monthStatistics')
}, }, */
{ {
path: '/workSet', path: '/workSet',
name: '考勤设置', name: '考勤设置',
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-04-12 17:56:45 * @Date: 2019-04-12 17:56:45
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-18 19:58:21 * @LastEditTime : 2019-12-21 11:24:58
--> -->
<template> <template>
<div class="notice-list-wrap"> <div class="notice-list-wrap">
...@@ -360,7 +360,7 @@ export default { ...@@ -360,7 +360,7 @@ export default {
mustJson: [], mustJson: [],
noMustJson: [], noMustJson: [],
//特殊考勤日期sperialType 1必须打卡0无须打卡 //特殊考勤日期sperialType 1必须打卡0无须打卡
attenceWorkJson: [{ weekDay: '1', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '2', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '3', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '4', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '5', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '6', workType: false, classesName: '', classesId: '', classessTimesJson: '' }, { weekDay: '0', workType: false, classesName: '', classesId: '', classessTimesJson: '' }], attenceWorkJson: [{ weekDay: '1', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '2', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '3', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '4', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '5', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '6', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }, { weekDay: '0', workType: false, classesName: '', classesId: '-1', classessTimesJson: '' }],
// 类型上班还是休息1上班0休息 // 类型上班还是休息1上班0休息
attenceClassesRangeJSON: [], attenceClassesRangeJSON: [],
classesJson: [] classesJson: []
...@@ -589,10 +589,7 @@ export default { ...@@ -589,10 +589,7 @@ export default {
// 考勤门店弹窗显示 // 考勤门店弹窗显示
showDialogMust(type, selData) { showDialogMust(type, selData) {
const that = this; const that = this;
// 查看不能操作
if (that.$route.query.attenceGroupId) {
return false;
}
that.mustType = type; that.mustType = type;
that.changed = type; that.changed = type;
if (type === 'store') { if (type === 'store') {
...@@ -616,10 +613,7 @@ export default { ...@@ -616,10 +613,7 @@ export default {
// 白名单门店弹窗显示 // 白名单门店弹窗显示
showDialogNo(type, selData) { showDialogNo(type, selData) {
const that = this; const that = this;
// 查看不能操作
if (that.$route.query.attenceGroupId) {
return false;
}
that.selectNoType = type; that.selectNoType = type;
that.changedNo = type; that.changedNo = type;
if (type === 'store') { if (type === 'store') {
...@@ -676,9 +670,6 @@ export default { ...@@ -676,9 +670,6 @@ export default {
*/ */
delDepart(index, obj, type) { delDepart(index, obj, type) {
const that = this; const that = this;
if (that.$route.query.attenceGroupId) {
return false;
}
obj.splice(index, 1); obj.splice(index, 1);
}, },
// 选择定时发送的日期 // 选择定时发送的日期
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2019-12-18 20:11:36 * @LastEditTime : 2019-12-21 10:07:48
--> -->
<!-- <!--
...@@ -46,14 +46,21 @@ ...@@ -46,14 +46,21 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.attenceType == 1"> <div v-if="scope.row.attenceType == 1">
<div v-for="(item, index) in scope.row.attenceWorkJson" :key="index + 'json'"> <div v-for="(item, index) in scope.row.attenceWorkJson" :key="index + 'json'">
<span>{{ weekDays[item.weekDay] }}</span> <span>{{ weekDays[item.weekDay] }} </span>
<span>{{ item.classesName }}</span> <span>班次{{ item.classesName }}</span>
<span v-if="!!item.classessTimesJson">
<span v-for="(child, cindex) in item.classessTimesJson" :key="cindex"> {{ child.startTime }}-{{ child.endTime }} </span>
</span>
</div>
</div>
<div v-if="scope.row.attenceType == 2">
<div v-for="(item, index) in scope.row.classesJson" :key="index + 'json2'">
<span>班次{{ item.classesName }}</span>
<span v-if="!!item.classessTimesJson"> <span v-if="!!item.classessTimesJson">
<span v-for="(child, cindex) in item.classessTimesJson" :key="cindex"> {{ child.startTime }}-{{ child.endTime }} </span> <span v-for="(child, cindex) in item.classessTimesJson" :key="cindex"> {{ child.startTime }}-{{ child.endTime }} </span>
</span> </span>
</div> </div>
</div> </div>
<div v-if="scope.row.attenceType == 2"></div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="最近更新时间" show-overflow-tooltip> <el-table-column prop="" label="最近更新时间" show-overflow-tooltip>
...@@ -338,14 +345,21 @@ export default { ...@@ -338,14 +345,21 @@ export default {
if (ele.attenceWorkJson) { if (ele.attenceWorkJson) {
ele.attenceWorkJson = JSON.parse(ele.attenceWorkJson) ele.attenceWorkJson = JSON.parse(ele.attenceWorkJson)
} }
if (!!ele.classesJson) {
ele.classesJson = JSON.parse(ele.classesJson)
}
}) })
resData.result.list.forEach(ele => { resData.result.list.forEach(ele => {
console.log(ele.attenceWorkJson)
if (!!ele.attenceWorkJson && ele.attenceWorkJson.length) { if (!!ele.attenceWorkJson && ele.attenceWorkJson.length) {
ele.attenceWorkJson.forEach(child => { ele.attenceWorkJson.forEach(child => {
child.classessTimesJson = child.classessTimesJson? JSON.parse(child.classessTimesJson): [] child.classessTimesJson = child.classessTimesJson? JSON.parse(child.classessTimesJson): []
}); });
} }
if (!!ele.classesJson&& ele.classesJson.length) {
ele.classesJson.forEach(child => {
child.classessTimesJson = child.classessTimesJson? JSON.parse(child.classessTimesJson): []
})
}
}) })
} }
console.log(resData.result.list) console.log(resData.result.list)
......
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