xiaohaizhao 3 năm trước cách đây
mục cha
commit
f004333cac

+ 1 - 6
packageA/setclient/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,4 @@
         查重
         <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>
 </van-popup>

+ 53 - 0
packageA/setclient/detail.js

@@ -149,11 +149,50 @@ Page({
                     })}&radio=true&principal=true`,
                 })
                 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/setclient/detail?id=' + item.sa_customersid,
+        })
+        this.repClose()
+    },
+    /* 关闭查重 */
+    repClose() {
+        this.setData({
+            repetitionShow: false
+        })
+    },
     /* 处理回收客户 */
     handleTransfer({
         value
@@ -418,6 +457,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
+            })
+        }
+    },
     //更新团队成员
     getGroup() {
         this.selectComponent("#Group").getList();

+ 49 - 1
packageA/setclient/detail.scss

@@ -1 +1,49 @@
-@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;
+        }
+
+        .exp {
+            line-height: 34rpx;
+            font-size: 24rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #666666;
+            margin-top: 8rpx;
+        }
+    }
+}

+ 13 - 1
packageA/setclient/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">
@@ -45,4 +45,16 @@
         return name.substring(0, 4)
     };
 </wxs>
+<!-- 查重 -->
+<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.taxno}}</view>
+        <view class="exp">地址:{{item.address}}</view>
+    </navigator>
+</van-popup>
 <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />