<view class="header">
    <view class="user">
        <view class="head-portrait">{{detail.NAME[0]||detail.name[0]}}</view>
        <view class="content">
            <view class="name">{{detail.NAME||detail.name}}</view>
            <view class="tag-box" wx:if="{{auth.isdatatag}}">
                <Yl-tags id="Tags" add='{{isLeader}}' ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' />
            </view>
        </view>
    </view>
    <view class="exp">
        {{language['联系方式']||'联系方式'}}：{{detail.phonenumber || detail.telephone||'--'}}
    </view>
    <view class="exp">{{language['分级']||'分级'}}：{{language[detail.grade]||detail.grade||'--'}}</view>
    <view class="exp">
        {{language['群组']||'群组'}}：{{language[detail.groupname]||detail.groupname||'--'}}
    </view>
    <view class="exp">{{language['最近跟进时间']||'最近跟进时间'}}：{{detail.followupdate||'--'}}</view>
    <view class="exp">{{language['营销费用']||'营销费用'}}：{{detail.showSalesfeesamount||'--'}}</view>
    <Yl-group id='Group' wx:if="{{auth.isdatateam}}" slot='bottom' add='{{true}}' ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' />
</view>
<!-- 功能 -->
<Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
    <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
    <Project slot='关联项目' id="Project" />
    <Clue slot='关联线索' id="Clue" />
    <Client slot='关联客户' id="Client" />
    <Trace resource='通讯录' slot='跟进动态' id='Trace' ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' ownerid1='{{detail.sys_phonebookid}}' isAdmin="{{per.query(options,'expenseBreakdown')}}" />
    <Work slot='任务' id='Work' ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' disabled="{{true}}" />
    <Record slot='操作记录' id="Record" ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' />
    <Files slot='附件' id="Files" ownertable='sys_phonebook' ownerid='{{detail.sys_phonebookid}}' />
</Yl_FunTabs>
<!-- 底部 -->
<Yl_Tabbar list='{{tabbarList}}' bind:callback="tabbarOnClick" />
<wxs src='../../utils/wxmlQueryPer.wxs' module="per" />