"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[37825],{37825:function(t,a,s){s.r(a),s.d(a,{default:function(){return c}});var e=function(){var t=this,a=t._self._c;return a("div",{staticClass:"g-pa-md g-bg-white"},[a("div",{staticClass:"module"},[a("div",{staticClass:"module-header"},[a("span",{staticClass:"module-title"},[t._v("店铺综合星级")]),a("span",[t._v("(统计时间段："+t._s(t.formatDateRange())+")")])]),a("div",{staticClass:"module-content"},[a("div",[t._v("店铺综合星级："+t._s(t.info.star)+"星")]),a("el-rate",{model:{value:t.info.star,callback:function(a){t.$set(t.info,"star",a)},expression:"info.star"}})],1)]),a("div",{staticClass:"module"},[a("div",{staticClass:"module-header"},[a("span",{staticClass:"module-title"},[t._v("具体考核指标")]),a("span",[t._v("(距离下一星级"+t._s(t.upfloorStar(t.info.star))+"星,您有"+t._s(t.info.needSatisfyRating)+"项指标需要提升)")])]),t._l(t.info.detailVOS,(function(s){return a("el-row",{key:s.groupName},t._l(s?.actionVOList,(function(e,i){return a("el-col",{key:e.actionName,attrs:{span:6}},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-title"},[t._v(t._s(0===i?s.groupName:""))]),a("div",{staticClass:"card-info"},[a("div",{staticClass:"mb10"},[t._v(t._s("GMV"===e.actionName?"近30天":"")+t._s(e.actionName)+": "+t._s(e.value))]),a("div",{staticClass:"mb10"},[t._v(" 下一星级标准："+t._s(e.nextStarLimit)+" "),a("span",{class:{red:!e.satisfy}},[t._v("("+t._s(e.satisfy?"已达标":"未达标")+")")])])])])])})),1)}))],2)])},i=[],n=s(73841),o={data(){return{info:{}}},mounted(){this.getShopCurrentIndex()},methods:{getShopCurrentIndex(){(0,n.MF)({shopId:this.$route.params.shopId}).then((t=>{t&&(console.log("res",t),this.info=t)}))},formatDateRange(){const t=new Date,a=new Date;a.setDate(a.getDate()-29);const s=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;return`${s(a)}～${s(t)}`},upfloorStar(t){return(Math.ceil(t)-t).toFixed(1)}}},r=o,l=s(81656),d=(0,l.A)(r,e,i,!1,null,"f803444c",null),c=d.exports}}]);