<view class="head">
    <view class="count">
        <text wx:if="{{language['总共']}}">{{language['总共']}}：{{content.total}}</text>
        <text wx:else>总共{{content.total}}个</text>
    </view>

    <view class="expand">
        <van-search wx:if="{{showSearch}}" custom-class='custom-class' focus='{{focus}}' value="{{ condition }}" shape="round" bind:change='onChange' bind:search='onSearch' bind:clear='onSearch' placeholder="{{language['业务员、跟进内容']||'业务员、跟进内容'}}" background='#F4F5F7' />
        <navigator url="#" class="but" bindtap="toSearch">
            <van-icon name="search" />
        </navigator>
        <navigator wx:if="{{disabled}}" url="#" class="but" bindtap="toAdd">
            <van-icon name="plus" />
        </navigator>
    </view>
</view>

<view class="trace-box" wx:for="{{followList}}" wx:key="sat_ordercluefollowuplogid">
    <view class="item" data-item="{{item}}">
        <view wx:if="{{item.resource}}" class="resource"> {{language[item.resource]||item.resource}}</view>
        <view class="createdate">
            {{item.createdate}}
        </view>
        <view class="user">
            <view class="portrait">
                {{item.createby[0]}}
            </view>
            <view class="content">
                <view class="label">
                    {{item.createby}}
                </view>
                <view class="position">
                    <text style="margin-right:50rpx;">{{language['部门']||'部门'}}：{{language[item.depname]||item.depname||' --'}}</text>
                    <text>{{language['职位']||'职位'}}：{{language[item.position]||item.position||' --'}}</text>
                </view>
            </view>
        </view>
        <view class="type">
            <view style="margin-right: 50rpx;flex-shrink: 0;">{{language['跟进类型']||'跟进类型'}}：<text>{{language[item.followupmode]||item.followupmode|| ' --'}}</text></view>
            <view class="line-1">{{language['跟进对象']||'跟进对象'}}：<text class="line-1">{{item.contactsName|| ' --'}}</text></view>
        </view>
        <view class="type">
            {{language['目的']||'目的'}}：{{item.target||' --'}}
        </view>
        <view class="type">
            {{language['过程']||'过程'}}：{{language[item.content]||item.content||' --'}}
        </view>
        <view class="type">
            {{language['结果']||'结果'}}：{{item.results||' --'}}
        </view>
        <view class="type">
            {{language['下次跟进计划']||'下次跟进计划'}}：{{item.nextplan||' --'}}
        </view>
        <view class="type" wx:if="{{isshowsalesfeesamount}}">
            {{language['营销费用']||'营销费用'}}：<text style="color: #FF3B30;">{{item.showsalesfeesamount}}</text>
        </view>
    </view>
    <Yl_Files id="{{'Yl_Files'+item.rowindex}}" attinfos="{{item.attinfo}}" delete="{{disabled && userid == item.createuserid}}" strict />
    <commentList id="Comment{{item.sat_ordercluefollowuplogid}}" comments='{{item.comment}}' quantity="{{item.commentqty}}" ownertable='sat_ordercluefollowuplog' ownerid='{{item.sat_ordercluefollowuplogid}}' bind:updateCommentList='updateCommentList' />
    <view class="bottom">
        <navigator url="#" class="comment" bind:tap="comment" id="Comment{{item.sat_ordercluefollowuplogid}}">
            <text class="iconfont icon-huifu" /><text style="color: #3874F6;">{{language['评论']||'评论'}}({{item.commentqty}})</text>
        </navigator>
        <view style="flex: 1;" />
        <navigator wx:if="{{expenseBreakdown}}" url="#" bindtap="expenseBreakdown" data-item="{{item}}" data-index="{{index}}">
            <text class="iconfont icon-yingxiaofeiyongmingxi" />{{language['费用明细']||'费用明细'}}
        </navigator>
        <block wx:if="{{disabled && userid == item.createuserid}}">
            <navigator url="#" bindtap="editItem" data-item="{{item}}">
                <text class="iconfont icon-bianji" />{{language['编辑']||'编辑'}}
            </navigator>
            <navigator url="#" bindtap="deleteItem" data-item="{{item}}">
                <text class="iconfont icon-qunzu" />{{language['删除']||'删除'}}
            </navigator>
        </block>
    </view>
</view>
<My_empty wx:if="{{followList.length==0}}" />
<van-popup show="{{ poputShow }}" round position="bottom" custom-style="min-height:70%;max-height:100%" bind:close="onClosePoput">
    <view class="head">{{language['查看附件']||'查看附件'}}</view>
    <Yl_Files id="Yl_Files" />
    <view style="height: 130rpx;" />
</van-popup>