Browse Source

家装客资页面优化

zhujindu 1 year ago
parent
commit
b35af03372

+ 5 - 4
src/views/clew/index.vue

@@ -164,10 +164,10 @@ export default {
   overflow: hidden;
 }
 .newCarList .newlist .title {
-  line-height: 32px;
+  /* line-height: 32px; */
 }
 .newCarList .van-cell__right-icon {
-  top: -4px;
+  top: 5px;
 }
 .newCarList .newlist {
   box-sizing: border-box;
@@ -176,7 +176,8 @@ export default {
   font-size: 14px;
   font-weight: bold;
   color: #333;
-  line-height: 14px;
+  padding: 5px 0;
+  /* line-height: 14px; */
 }
 .newCarList .newlist .info {
   font-size: 14px;
@@ -189,7 +190,7 @@ export default {
 }
 .newCarList .newlist .title .textLeft {
   display: inline-block;
-  padding-bottom: 10px;
+  /* padding-bottom: 10px; */
 }
 .newCarList .newlist .title .textRight {
   float: right;

+ 13 - 1
src/views/week/assignAwait/JZfollowUp.vue

@@ -19,7 +19,7 @@
       <!-- 转交 -->
       <!--  -->
       <van-button
-        v-if="infoData.customerClueStatus == 0 && postName && postName == '区域家装销售负责人'"
+        v-if="infoData.isClose != 1 && postName && postName == '区域家装销售负责人'"
         type="info"
         size="small"
         plain
@@ -158,6 +158,18 @@ export default {
           if (this.infoData.isClose != 1) {
             this.getSelectCustomerClueInfoById();
           }
+          // 当前客资归属人不是当前登录人
+          if (this.infoData.sendUserId != localStorage.getItem('userId')) {
+            this.$dialog
+              .confirm({
+                title: '提示',
+                message: '该客资已经被转移给其他人',
+                showCancelButton: false,
+              })
+              .then(() => {
+                this.$router.replace({ path: '/clew' });
+              });
+          }
         } else {
           this.$toast(res.msg);
         }

+ 12 - 0
src/views/week/assignAwait/assignPage.vue

@@ -214,6 +214,18 @@ export default {
           } else {
             this.collectionItemList = [];
           }
+          // 当前客资是否已经被分配
+          if (this.infoData.allocationStatus == 1) {
+            this.$dialog
+              .confirm({
+                title: '提示',
+                message: '该客资已经被分配',
+                showCancelButton: false,
+              })
+              .then(() => {
+                this.$router.replace({ path: '/assignAwait' });
+              });
+          }
         } else {
           this.$toast(res.msg);
         }