xiaohaizhao 2 years ago
parent
commit
b8491db26c

+ 7 - 12
packageA/opponent/add.js

@@ -67,8 +67,6 @@ Page({
     onLoad(options) {
         if (options.data) {
             let data = JSON.parse(options.data);
-            console.log(data)
-            this.se
             this.setData({
                 disabled: false,
                 form: this.data.form.map(v => {
@@ -148,10 +146,8 @@ Page({
             icon: "none"
         });
         let res = await this.handleQueryRepetition({
-            sa_customersid: 0,
-            enterprisename,
-            taxno: "",
-            address: ""
+            sa_competitorid: this.data.content.sa_competitorid,
+            enterprisename: enterprisename,
         });
         console.log("查询重复", res)
         if (res.msg != '成功') return wx.showToast({
@@ -194,19 +190,17 @@ Page({
     /* 处理查重 */
     handleQueryRepetition(content) {
         return _Http.basic({
-            "id": 20221208172002,
+            "id": 20230324132602,
             content
         })
     },
     async submit() {
         let data = this.selectComponent("#Form").submit();
         let query = await this.handleQueryRepetition({
-            sa_customersid: 0,
+            sa_competitorid: this.data.content.sa_competitorid,
             enterprisename: data.enterprisename,
-            taxno: "",
-            address: ""
         });
-
+        console.log(query)
         if (query.total != 0) {
             wx.showToast({
                 title: `查询到${query.total}条疑似重复信息`,
@@ -264,5 +258,6 @@ Page({
             }, tag ? 500 : 300)
 
         })
-    }
+    },
+
 })

+ 12 - 0
packageA/opponent/add.scss

@@ -67,6 +67,18 @@
             color: #333333;
         }
 
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
         .exp {
             line-height: 34rpx;
             font-size: 24rpx;

+ 13 - 5
packageA/opponent/add.wxml

@@ -1,7 +1,7 @@
 <Yl_Headline title='基本信息' type='switch' switchLabel='仅显示必填信息' switch='{{showAll}}' bind:callBack='onChange' />
 <Yl_field id='Form' form='{{form}}' showAll='{{!showAll}}' bind:onConfirm='onConfirm'>
     <view slot='info'>
-        <information id="Info" catchtap='queryClient' catch:callback='introduce' />
+        <information id="Info" bind:queryClient='queryClient' catch:callback='introduce' />
     </view>
 </Yl_field>
 <view style="height: 100rpx;" />
@@ -17,9 +17,17 @@
         查重
         <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
     </view>
-    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid">
-        <view class="enterprise_title">{{item.enterprisename}}</view>
-        <view class="exp">税号:{{item.taxno}}</view>
-        <view class="exp">地址:{{item.address}}</view>
+    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">客户地址:{{item.address||" --"}}</view>
+        <view class="exp">企业税号:{{item.taxno||" --"}}</view>
+        <view class="exp">客户类型:{{item.type||" --"}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
+        <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
+        <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
     </navigator>
 </van-popup>

+ 52 - 2
packageA/opponent/detail.js

@@ -45,7 +45,7 @@ Page({
         this.setData({
             sa_competitorid: options.id,
             isAdmin: wx.getStorageSync('auth').wPublicCustomer.options.some(v => v == "admin"), //是否具有管理权限
-		})
+        })
         this.getDetail();
     },
     //详情按钮回调
@@ -72,11 +72,46 @@ Page({
                     })}&id=20221018164202`,
                 })
                 break;
+            case "查看重复":
+                _Http.basic({
+                    "id": 20230324132602,
+                    "content": {
+                        "sa_competitorid": data.sa_competitorid,
+                        "enterprisename": data.enterprisename
+                    }
+                }).then(res => {
+                    console.log("查看重复", res)
+                    if (res.msg != '成功') return wx.showToast({
+                        title: res.msg,
+                        icon: "none"
+                    });
+                    this.setData({
+                        repetitionList: res.data,
+                        repetitionShow: true
+                    })
+                })
+                break;
             default:
                 console.log(detail)
                 break;
         }
     },
+    /* 前去重复项详情 */
+    toRepDetail(e) {
+        const {
+            item
+        } = e.currentTarget.dataset;
+        wx.navigateTo({
+            url: '/packageA/opponent/detail?id=' + item.sa_competitorid,
+        })
+        this.repClose()
+    },
+    /* 关闭查重 */
+    repClose() {
+        this.setData({
+            repetitionShow: false
+        })
+    },
     /* 获取详情 */
     getDetail() {
         /* 基本信息 */
@@ -212,5 +247,20 @@ Page({
     onReachBottom() {
         this.partialRenewal();
     },
-    onShareAppMessage() {}
+    onShareAppMessage() {},
+    //标签获取到列表后
+    onGetList({
+        detail
+    }) {
+        console.log(detail)
+        if (detail.data.systemtag.includes("疑似重复")) {
+            this.data.tabbarList.push({
+                icon: "icon-a-shouyejingangquhehuoren",
+                label: "查看重复"
+            });
+            this.setData({
+                tabbarList: this.data.tabbarList
+            })
+        }
+    },
 })

+ 61 - 1
packageA/opponent/detail.scss

@@ -1 +1,61 @@
-@import "./modules/list/index";
+@import "./modules/list/index";
+
+.popup {
+    .title {
+        position: sticky;
+        height: 80rpx;
+        line-height: 80rpx;
+        width: 100%;
+        text-align: center;
+        border-bottom: 1rpx solid #ddd;
+        font-weight: 600;
+        color: #333;
+        top: 0;
+        background-color: #fff;
+
+        .icon {
+            position: absolute;
+            right: 28rpx;
+            top: 22rpx;
+            color: #999;
+        }
+    }
+
+    .enterprise {
+        width: 100%;
+        box-sizing: border-box;
+        padding-left: 30rpx;
+        padding-right: 10rpx;
+        padding-bottom: 10rpx;
+        border-bottom: 1rpx solid #ddd;
+        margin-top: 10rpx;
+
+        &_title {
+            line-height: 40rpx;
+            font-size: 28rpx;
+            font-family: PingFang SC-Bold, PingFang SC;
+            font-weight: bold;
+            color: #333333;
+        }
+
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
+        .exp {
+            line-height: 34rpx;
+            font-size: 24rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #666666;
+            margin-top: 8rpx;
+        }
+    }
+}

+ 15 - 2
packageA/opponent/detail.wxml

@@ -5,7 +5,7 @@
         <view class="mian">
             <view class="label line-1">{{detail.enterprisename}}</view>
             <view class="tag-box">
-                <Yl-tags id="Tags" add ownertable='sa_competitor' ownerid='{{detail.sa_competitorid}}' />
+                <Yl-tags id="Tags" add ownertable='sa_competitor' bind:onGetList='onGetList' ownerid='{{detail.sa_competitorid}}' />
             </view>
         </view>
         <view class="extend">
@@ -36,4 +36,17 @@
         return name.substring(0, 4)
     };
 </wxs>
-<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
+<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
+
+<!-- 查重 -->
+<van-popup show="{{ repetitionShow }}" custom-class='popup' round position="bottom" custom-style="height: 100%;" bind:close="repClose">
+    <view class="title">
+        查重
+        <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
+    </view>
+    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="exp">创建人:{{item.createby||" --"}}</view>
+        <view class="exp">品牌名称:{{item.brandname||" --"}}</view>
+    </navigator>
+</van-popup>

+ 12 - 0
packageA/project/addAndEdit.scss

@@ -59,6 +59,18 @@
         border-bottom: 1rpx solid #ddd;
         margin-top: 10rpx;
 
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
         &_title {
             line-height: 40rpx;
             font-size: 28rpx;

+ 11 - 2
packageA/project/addAndEdit.wxml

@@ -13,7 +13,16 @@
     </view>
     <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sa_projectid">
         <view class="enterprise_title">{{item.projectname}}</view>
-        <view class="exp">创建人:{{item.name}}</view>
-        <view class="exp">地址:{{item.address}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">项目状态:{{item.status ||' --'}}</view>
+        <view class="exp">项目编号:{{item.projectnum ||' --'}}</view>
+        <view class="exp">项目地址:{{item.address ||' --'}}</view>
+        <view class="exp">项目类型:{{item.projecttype ||' --'}}</view>
+        <view class="exp">领域:{{item.tradefield||' --'}}</view>
+        <view class="exp">品牌:{{item.brandname||' --'}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||' --'}}</view>
     </navigator>
 </van-popup>

+ 4 - 3
packageA/project/detail.js

@@ -110,7 +110,7 @@ Page({
         }].concat(tabbarList);
 
         if (isLeader || this.data.isAdmin) {
-            tabbarList = tabbarList.concat([{
+            if (data.status != '已失败') tabbarList = tabbarList.concat([{
                 icon: "icon-bianji",
                 label: "编辑"
             }, {
@@ -119,10 +119,11 @@ Page({
             }, {
                 icon: "icon-zhuanyi",
                 label: "更换负责人"
-            }, {
+            }])
+            tabbarList.push({
                 icon: "icon-shanchu",
                 label: "作废"
-            }])
+            })
             tabbarList.push(data.status == '已失败' ? {
                 icon: "icon-dibu-chehui",
                 label: "恢复"

+ 2 - 1
packageA/publicClue/addClue.js

@@ -183,6 +183,7 @@ Page({
             let item = this.data.form.find(item => item.label == '市场活动');
             item.value = [options.name, [options.sat_campaignid]];
             item.disabled = true;
+            this.data.content.sat_campaignid = options.sat_campaignid;
             this.setData({
                 form: this.data.form
             })
@@ -272,7 +273,7 @@ Page({
                         v.getList(true);
                     } else if (v.__route__ == 'packageA/activity/detail') {
                         v.getDetail()
-                        v.selectComponent('#clue').getList(this.data.content.sat_campaignid, true)
+                        v.selectComponent('#Clue').getList(this.data.content.sat_campaignid, true)
                     }
                 })
             }, 300)

+ 13 - 0
packageA/publicCustomer/addAndEditor.scss

@@ -67,6 +67,19 @@
             color: #333333;
         }
 
+        
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
         .exp {
             line-height: 34rpx;
             font-size: 24rpx;

+ 13 - 5
packageA/publicCustomer/addAndEditor.wxml

@@ -1,7 +1,7 @@
 <Yl_Headline title='基本信息' type='switch' switchLabel='仅显示必填信息' switch='{{showAll}}' bind:callBack='onChange' />
 <Yl_field id='Form' form='{{form}}' showAll='{{!showAll}}' bind:onConfirm='onConfirm'>
     <view slot='info'>
-        <information id="Info" catchtap='queryClient' catch:callback='introduce' />
+        <information id="Info" bind:queryClient='queryClient' catch:callback='introduce' />
     </view>
 </Yl_field>
 <view style="height: 112rpx;" />
@@ -16,9 +16,17 @@
         查重
         <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
     </view>
-    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid">
-        <view class="enterprise_title">{{item.enterprisename}}</view>
-        <view class="exp">税号:{{item.taxno}}</view>
-        <view class="exp">地址:{{item.address}}</view>
+    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">客户地址:{{item.address||" --"}}</view>
+        <view class="exp">企业税号:{{item.taxno||" --"}}</view>
+        <view class="exp">客户类型:{{item.type||" --"}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
+        <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
+        <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
     </navigator>
 </van-popup>

+ 53 - 0
packageA/publicCustomer/detail.js

@@ -211,11 +211,50 @@ Page({
                 })
                 getApp().globalData.handleSelect = this.handleSelectContacts.bind(this);
                 break;
+            case "查看重复":
+                _Http.basic({
+                    "id": 20221208172002,
+                    "content": {
+                        "sa_customersid": data.sa_customersid,
+                        "enterprisename": data.enterprisename,
+                        "taxno": data.taxno,
+                        "address": data.address,
+                        pageSize: 999
+                    }
+                }).then(res => {
+                    console.log("查看重复", res)
+                    if (res.msg != '成功') return wx.showToast({
+                        title: res.msg,
+                        icon: "none"
+                    });
+                    this.setData({
+                        repetitionList: res.data,
+                        repetitionShow: true
+                    })
+                })
+                break;
             default:
                 console.log(detail)
                 break;
         }
     },
+    /* 前去重复项详情 */
+    toRepDetail(e) {
+        const {
+            item
+        } = e.currentTarget.dataset;
+        console.log(item)
+        wx.navigateTo({
+            url: '/packageA/publicCustomer/detail?id=' + item.sa_customersid,
+        })
+        this.repClose()
+    },
+    /* 关闭查重 */
+    repClose() {
+        this.setData({
+            repetitionShow: false
+        })
+    },
     /* 获取详情 */
     getDetail() {
         /* 基本信息 */
@@ -392,6 +431,20 @@ Page({
     getTags() {
         this.selectComponent("#Tags").getTags();
     },
+    //标签获取到列表后
+    onGetList({
+        detail
+    }) {
+        if (detail.data.systemtag.includes("疑似重复")) {
+            this.data.tabbarList.push({
+                icon: "icon-a-shouyejingangquhehuoren",
+                label: "查看重复"
+            });
+            this.setData({
+                tabbarList: this.data.tabbarList
+            })
+        }
+    },
     onReachBottom() {
         this.partialRenewal();
     }

+ 60 - 1
packageA/publicCustomer/detail.scss

@@ -1 +1,60 @@
-@import "./modules/list/index";
+@import "./modules/list/index";
+.popup {
+    .title {
+        position: sticky;
+        height: 80rpx;
+        line-height: 80rpx;
+        width: 100%;
+        text-align: center;
+        border-bottom: 1rpx solid #ddd;
+        font-weight: 600;
+        color: #333;
+        top: 0;
+        background-color: #fff;
+
+        .icon {
+            position: absolute;
+            right: 28rpx;
+            top: 22rpx;
+            color: #999;
+        }
+    }
+
+    .enterprise {
+        width: 100%;
+        box-sizing: border-box;
+        padding-left: 30rpx;
+        padding-right: 10rpx;
+        padding-bottom: 10rpx;
+        border-bottom: 1rpx solid #ddd;
+        margin-top: 10rpx;
+
+        &_title {
+            line-height: 40rpx;
+            font-size: 28rpx;
+            font-family: PingFang SC-Bold, PingFang SC;
+            font-weight: bold;
+            color: #333333;
+        }
+
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
+        .exp {
+            line-height: 34rpx;
+            font-size: 24rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #666666;
+            margin-top: 8rpx;
+        }
+    }
+}

+ 23 - 2
packageA/publicCustomer/detail.wxml

@@ -5,7 +5,7 @@
         <view class="mian">
             <view class="label line-1">{{detail.enterprisename}}</view>
             <view class="tag-box">
-                <Yl-tags id="Tags" add ownertable='sa_customers' ownerid='{{detail.sa_customersid}}' />
+                <Yl-tags id="Tags" add ownertable='sa_customers' bind:onGetList='onGetList' ownerid='{{detail.sa_customersid}}' />
             </view>
         </view>
         <view class="extend">
@@ -42,4 +42,25 @@
         return name.substring(0, 4)
     };
 </wxs>
-<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
+<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
+
+<!-- 查重 -->
+<van-popup show="{{ repetitionShow }}" custom-class='popup' round position="bottom" custom-style="height: 100%;" bind:close="repClose">
+    <view class="title">
+        查重
+        <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
+    </view>
+    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">客户地址:{{item.address||" --"}}</view>
+        <view class="exp">企业税号:{{item.taxno||" --"}}</view>
+        <view class="exp">客户类型:{{item.type||" --"}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
+        <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
+        <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
+    </navigator>
+</van-popup>

+ 3 - 3
packageA/publicCustomer/index.js

@@ -89,18 +89,18 @@ Page({
     /* 获取列表标签 */
     getTags() {
         let list = this.data.list,
-            ownerids = list.map(v => v.sa_customerpoolid);
+            ownerids = list.map(v => v.sa_customersid);
         _Http.basic({
             "id": 20221018102001,
             "content": {
                 nocache: true,
-                "ownertable": "sa_customerpool",
+                "ownertable": "sa_customers",
                 ownerids
             }
         }).then(res => {
             console.log("标签", res)
             for (let key in res.data) {
-                let index = list.findIndex(v => v.sa_customerpoolid == key);
+                let index = list.findIndex(v => v.sa_customersid == key);
                 list[index].tags = res.data[key]
             };
             this.setData({

+ 12 - 0
packageA/setclient/addAndEditor.scss

@@ -66,6 +66,18 @@
             color: #333333;
         }
 
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
         .exp {
             line-height: 34rpx;
             font-size: 24rpx;

+ 13 - 0
packageA/setclient/addAndEditor.wxml

@@ -16,4 +16,17 @@
         查重
         <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
     </view>
+    <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">客户地址:{{item.address||" --"}}</view>
+        <view class="exp">企业税号:{{item.taxno||" --"}}</view>
+        <view class="exp">客户类型:{{item.type||" --"}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
+        <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
+        <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
+    </navigator>
 </van-popup>

+ 12 - 0
packageA/setclient/detail.scss

@@ -38,6 +38,18 @@
             color: #333333;
         }
 
+        .tag-box {
+            margin-top: 10rpx;
+
+            .tag {
+                height: 40rpx;
+                font-size: 20rpx;
+                font-family: PingFang SC-Regular, PingFang SC;
+                padding: 0 12rpx;
+                margin-right: 8rpx;
+            }
+        }
+
         .exp {
             line-height: 34rpx;
             font-size: 24rpx;

+ 11 - 3
packageA/setclient/detail.wxml

@@ -52,9 +52,17 @@
         <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
     </view>
     <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
-        <view class="enterprise_title">{{item.enterprisename}}</view>
-        <view class="exp">税号:{{item.taxno}}</view>
-        <view class="exp">地址:{{item.address}}</view>
+        <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
+        <view class="tag-box">
+            <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
+            <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
+        </view>
+        <view class="exp">客户地址:{{item.address||" --"}}</view>
+        <view class="exp">企业税号:{{item.taxno||" --"}}</view>
+        <view class="exp">客户类型:{{item.type||" --"}}</view>
+        <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
+        <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
+        <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
     </navigator>
 </van-popup>
 <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />