zhujindu 6 месяцев назад
Родитель
Сommit
d5d044c77a
2 измененных файлов с 17 добавлено и 3 удалено
  1. 14 3
      src/views/deviceOutside/index.vue
  2. 3 0
      src/views/deviceWithin/index.vue

+ 14 - 3
src/views/deviceOutside/index.vue

@@ -83,7 +83,7 @@
                     placement="bottom"
                     width="120"
                     trigger="click"
-                    content="该客户为凤凰客户">
+                    :content="setJPABCContent(item)">
                     <div
                       v-if="setJPABCFlag(item)"
                       class="visitStoreIco"
@@ -322,8 +322,8 @@
               <div class="info" v-if="item.storeLonExist">
                 距离:{{ Micrometer(item.distance) }}m
               </div>
-              <div class="info" v-if="item.storeLonExist">
-                门店销额(全年累计):{{ item.cntOrderAmtYear }}m
+              <div class="info" v-if="item.cntOrderAmtYear">
+                门店销额(全年累计):{{ Micrometer(item.cntOrderAmtYear) }}元
               </div>
             </div>
             <div
@@ -813,6 +813,17 @@ export default {
         return false;
       }
     },
+    setJPABCContent(item) {
+      if (item.storeLabels.jpA) {
+        return 'A级金牌店拜访标准1月2次';
+      } else if (item.storeLabels.jpB) {
+        return 'B级金牌店拜访标准1月1次';
+      } else if (item.storeLabels.jpC) {
+        return 'C级金牌店拜访标准1月1次';
+      } else {
+        return '';
+      }
+    },
     handleTouch(e) {
       e._isScroller = true;
     },

+ 3 - 0
src/views/deviceWithin/index.vue

@@ -285,6 +285,9 @@
             </template>
             <!-- storeLonExist 门店是否存在经纬度 字段false=不显示导航和距离,true=显示 -->
             <div class="info" v-if="item.storeLonExist">距离:{{ Micrometer(item.distance) }}m</div>
+            <div class="info" v-if="item.cntOrderAmtYear">
+              门店销额(全年累计):{{ Micrometer(item.cntOrderAmtYear) }}元
+            </div>
           </div>
           <div
             class="statstext"