zhujindu 1 dzień temu
rodzic
commit
45dc0a30b1
1 zmienionych plików z 141 dodań i 141 usunięć
  1. 141 141
      src/views/deviceWithin/index.vue

+ 141 - 141
src/views/deviceWithin/index.vue

@@ -391,160 +391,160 @@
                     </el-table>
                   </el-popover>
                 </div>
-                <div class="info" v-if="item.addressLine">
-                  地址:{{ item.addressLine
-                  }}<img
-                    v-if="item.storeLonExist"
-                    style="width: 36px"
-                    :src="sbpmdh"
-                    @click="linkapp(item)" />
-                </div>
-                <!-- 潜在店不显示经销商 -->
-                <template v-if="item.sfaStoreType.type != 'qzd'">
-                  <!-- 分销店 -->
-                  <template
-                    v-if="
-                      item.sfaStoreType &&
-                      item.sfaStoreType.type == 'fxd' &&
-                      item.sfaStoreChainsContactList
-                    ">
-                    <div class="info" v-if="typeShow">
-                      经销商:
-                      <div
-                        class="TCFXListItem"
-                        v-for="(item, index) in item.sfaStoreChainsContactList">
-                        <el-popover
-                          popper-class="zpover zpoverStoreztype"
-                          placement="bottom-start"
-                          trigger="click">
-                          <div>
-                            <div>{{ item.chainCode }}</div>
-                            <div>{{ item.chainName }}</div>
-                          </div>
-                          <div slot="reference" :key="index">
-                            {{ item.categoryDescribe }}
-                          </div>
-                        </el-popover>
-                      </div>
+              </div>
+              <div class="info" v-if="item.addressLine">
+                地址:{{ item.addressLine
+                }}<img
+                  v-if="item.storeLonExist"
+                  style="width: 36px"
+                  :src="sbpmdh"
+                  @click="linkapp(item)" />
+              </div>
+              <!-- 潜在店不显示经销商 -->
+              <template v-if="item.sfaStoreType.type != 'qzd'">
+                <!-- 分销店 -->
+                <template
+                  v-if="
+                    item.sfaStoreType &&
+                    item.sfaStoreType.type == 'fxd' &&
+                    item.sfaStoreChainsContactList
+                  ">
+                  <div class="info" v-if="typeShow">
+                    经销商:
+                    <div
+                      class="TCFXListItem"
+                      v-for="(item, index) in item.sfaStoreChainsContactList">
+                      <el-popover
+                        popper-class="zpover zpoverStoreztype"
+                        placement="bottom-start"
+                        trigger="click">
+                        <div>
+                          <div>{{ item.chainCode }}</div>
+                          <div>{{ item.chainName }}</div>
+                        </div>
+                        <div slot="reference" :key="index">
+                          {{ item.categoryDescribe }}
+                        </div>
+                      </el-popover>
                     </div>
-                  </template>
-                  <template v-else>
-                    <div class="info" v-if="typeShow">经销商:{{ item.chainName }}</div>
-                  </template>
+                  </div>
                 </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"
-                v-if="item.stateString == '未拜访'"
-                style="background-color: #ed5c68">
-                未拜访
+                <template v-else>
+                  <div class="info" v-if="typeShow">经销商:{{ item.chainName }}</div>
+                </template>
+              </template>
+              <!-- storeLonExist 门店是否存在经纬度 字段false=不显示导航和距离,true=显示 -->
+              <div class="info" v-if="item.storeLonExist">
+                距离:{{ Micrometer(item.distance) }}m
               </div>
-              <div
-                class="statstext"
-                v-if="item.stateString == '拜访中'"
-                style="background-color: white">
-                <van-icon :name="times" color="#ee0a24" size="32" />
+              <div class="info" v-if="item.cntOrderAmtYear">
+                门店销额(全年累计):{{ Micrometer(item.cntOrderAmtYear) }}元
               </div>
-              <template v-if="item.stateString == '已拜访'">
-                <!-- 正常拜访 -->
-                <template v-if="item.visitSource == 1">
-                  <!-- 金牌店+同城分销店+可控店 -->
-                  <template v-if="item.jinpaiStore || item.fenxiaoStore || item.kekongStore">
-                    <div class="statstext" style="background-color: #e3f0fe">
-                      <span style="color: #387bca">已拜访</span>
-                      <div
-                        class="statstextIcon"
-                        style="background-color: #0057ba"
-                        @click="openPerfectStore(item)">
-                        <div style="margin: 4px; font-size: 14px; font-weight: 600">
-                          <img
-                            style="width: 18px; height: 20px; margin: 0 5px; vertical-align: -5px"
-                            :src="require('@/assets/shouzhi.png')" />完美门店报告
-                        </div>
+            </div>
+            <div
+              class="statstext"
+              v-if="item.stateString == '未拜访'"
+              style="background-color: #ed5c68">
+              未拜访
+            </div>
+            <div
+              class="statstext"
+              v-if="item.stateString == '拜访中'"
+              style="background-color: white">
+              <van-icon :name="times" color="#ee0a24" size="32" />
+            </div>
+            <template v-if="item.stateString == '已拜访'">
+              <!-- 正常拜访 -->
+              <template v-if="item.visitSource == 1">
+                <!-- 金牌店+同城分销店+可控店 -->
+                <template v-if="item.jinpaiStore || item.fenxiaoStore || item.kekongStore">
+                  <div class="statstext" style="background-color: #e3f0fe">
+                    <span style="color: #387bca">已拜访</span>
+                    <div
+                      class="statstextIcon"
+                      style="background-color: #0057ba"
+                      @click="openPerfectStore(item)">
+                      <div style="margin: 4px; font-size: 14px; font-weight: 600">
+                        <img
+                          style="width: 18px; height: 20px; margin: 0 5px; vertical-align: -5px"
+                          :src="require('@/assets/shouzhi.png')" />完美门店报告
                       </div>
                     </div>
-                  </template>
-                  <template v-else>
-                    <div class="statstext">
-                      <span>已拜访</span>
-                    </div>
-                  </template>
+                  </div>
                 </template>
                 <template v-else>
-                  <!-- 异常拜访 -->
                   <div class="statstext">
                     <span>已拜访</span>
                   </div>
                 </template>
               </template>
-              <div class="btnbox">
-                <van-row>
-                  <van-col
-                    span="4"
-                    v-if="item.stateString != '已拜访' && item.visitAble && customerVisits"
-                    @click="storeVisit(item)">
-                    <img :src="call" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; font-size: 11px">进入拜访</p>
-                  </van-col>
-                  <van-col
-                    span="4"
-                    v-if="item.storeCategory == '公装经销商'"
-                    @click="projectOutVisit(item)">
-                    <img :src="xmgj" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; font-size: 11px">项目跟进</p>
-                  </van-col>
-                  <van-col
-                    span="4"
-                    v-if="
-                      item.stateString != '已拜访' &&
-                      item.visitAble &&
-                      item.storeCategory != '公装经销商' &&
-                      customerVisits
-                    "
-                    @click="abnormalVisit(item)">
-                    <img :src="yichang" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
-                      异常拜访
-                    </p>
-                  </van-col>
-                  <van-col
-                    span="4"
-                    v-if="item.storeLabels.zysslNums !== false"
-                    @click="linkList(item)">
-                    <img
-                      :src="require('@/assets/recommendicon.png')"
-                      style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
-                      推荐下单
-                    </p>
-                  </van-col>
-                  <van-col span="4" v-else-if="item.showOrderButton" @click="orderFn(item)">
-                    <img :src="xiadan" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
-                      去下单
-                    </p>
-                  </van-col>
-                  <van-col span="4" v-if="item.stateString == '已拜访'" @click="Visit(item)">
-                    <img :src="bfxx" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
-                      拜访信息
-                    </p>
-                  </van-col>
-                  <van-col span="4" @click="visitFn(item)">
-                    <img :src="kehuxinxi" style="margin: 0 auto; height: 15px; display: block" />
-                    <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
-                      客户信息
-                    </p>
-                  </van-col>
-                </van-row>
-              </div>
+              <template v-else>
+                <!-- 异常拜访 -->
+                <div class="statstext">
+                  <span>已拜访</span>
+                </div>
+              </template>
+            </template>
+            <div class="btnbox">
+              <van-row>
+                <van-col
+                  span="4"
+                  v-if="item.stateString != '已拜访' && item.visitAble && customerVisits"
+                  @click="storeVisit(item)">
+                  <img :src="call" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; font-size: 11px">进入拜访</p>
+                </van-col>
+                <van-col
+                  span="4"
+                  v-if="item.storeCategory == '公装经销商'"
+                  @click="projectOutVisit(item)">
+                  <img :src="xmgj" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; font-size: 11px">项目跟进</p>
+                </van-col>
+                <van-col
+                  span="4"
+                  v-if="
+                    item.stateString != '已拜访' &&
+                    item.visitAble &&
+                    item.storeCategory != '公装经销商' &&
+                    customerVisits
+                  "
+                  @click="abnormalVisit(item)">
+                  <img :src="yichang" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
+                    异常拜访
+                  </p>
+                </van-col>
+                <van-col
+                  span="4"
+                  v-if="item.storeLabels.zysslNums !== false"
+                  @click="linkList(item)">
+                  <img
+                    :src="require('@/assets/recommendicon.png')"
+                    style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
+                    推荐下单
+                  </p>
+                </van-col>
+                <van-col span="4" v-else-if="item.showOrderButton" @click="orderFn(item)">
+                  <img :src="xiadan" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
+                    去下单
+                  </p>
+                </van-col>
+                <van-col span="4" v-if="item.stateString == '已拜访'" @click="Visit(item)">
+                  <img :src="bfxx" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
+                    拜访信息
+                  </p>
+                </van-col>
+                <van-col span="4" @click="visitFn(item)">
+                  <img :src="kehuxinxi" style="margin: 0 auto; height: 15px; display: block" />
+                  <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
+                    客户信息
+                  </p>
+                </van-col>
+              </van-row>
             </div>
           </van-cell>
           <div class="lineGrey"></div>