<!-- 头部 样式使用list样式 -->
<view class="setclient-list-item" url="#">
    <view class="con">
        <view class="portrait {{detail.enterprisename <=2?'min-portrait':''}}">{{handle.getName(detail.enterprisename)}}</view>
        <view class="mian">
            <view class="label line-1">{{detail.enterprisename}}</view>
            <view class="tag-box">
                <Yl-tags id="Tags" add ownertable='sa_competitor' bind:onGetList='onGetList' ownerid='{{detail.sa_competitorid}}' />
            </view>
        </view>
        <view class="extend">
            <Info />
        </view>
    </view>
</view>
<!-- 简介 -->
<Yl_Detail list="{{briefs}}" />
<view style="height: 20rpx;" />
<!-- 功能 -->
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <Project slot='参与项目' id='Project' />
    <Address slot='地址管理' id='Address' disabled="{{per.query(options,'address')||isShowTabbar}}" />
    <Contacts slot='联系人' id='Contacts' disabled="{{per.query(options,'contact')||isShowTabbar}}" path='/packageA/setclient/modules/contacts/add/index' />
    <Work slot='任务' id='Work' ownertable='sa_competitor' ownerid='{{detail.sa_competitorid}}' disabled="{{isAdmin||isLeader}}" />
    <Trace slot='跟进动态' id='Trace' ownertable='sa_competitor' ownerid='{{detail.sa_competitorid}}' />
    <Record slot='操作记录' id="Record" ownertable='sa_competitor' ownerid='{{detail.sa_competitorid}}' />
    <Files slot='附件' id="Files" ownertable='sa_competitor' ownerid='{{detail.sa_competitorid}}' />
    <view style="height: 140rpx;" />
</Yl_FunTabs>
<!-- 底部 -->
<Yl_Tabbar wx:if="{{tabbarList.length!=0}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
<!-- 处理四字 -->
<wxs module="handle">
    module.exports.getName = function (name) {
        return name.substring(0, 4)
    };
</wxs>
<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>