<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="insetr">
            <van-icon name="plus" />
        </navigator>
    </view>
</view>

<view class="trace-box" wx:for="{{list}}" wx:key="sys_datafollowupid">
    <navigator url="#" class="item" data-item="{{item}}" bindtap="toDetail">
        <view wx:if="{{item.resource}}" class="resource"> {{language[item.resource]||item.resource}}</view>
        <view class="createdate">
            {{item.createdate}}
        </view>
        <view class="user">
            <image class="portrait" wx:if="{{item.headpic}}" src="{{item.headpic}}" mode="aspectFill" lazy-load />
            <view class="portrait" style="background-color: #3874F6;" wx:else>
                {{item.createby[0]}}
            </view>
            <view class="content">
                <view class="label">
                    {{item.createby}}
                </view>
                <view class="exp">
                    <text style="margin-right:50rpx;">{{language['部门']||'部门'}}：{{item.userextend[0].depname||' --'}}</text>
                    <text>{{language['职位']||'职位'}}：{{item.userextend[0].position||' --'}}</text>
                </view>
            </view>
        </view>
        <view class="type">
            {{language['跟进类型']||'跟进类型'}}：<text>{{language[item.type]||item.type|| ' --'}}</text>
        </view>
        <view class="type">
            {{language['跟进对象']||'跟进对象'}}：<text style="color: #5C8DF8;">{{language[item.names]||item.names || ' --'}}</text>
        </view>
        <view class="text">
            {{language['目的']||'目的'}}：{{item.target||' --'}}
        </view>
        <view class="text">
            {{language['过程']||'过程'}}：{{language[item.content]||item.content||' --'}}
        </view>
        <view class="text">
            {{language['结果']||'结果'}}：{{item.results||' --'}}
        </view>
        <view class="text">
            {{language['下次跟进计划']||'下次跟进计划'}}：{{item.nextplan||' --'}}
        </view>
        <view class="text">
            {{language['营销费用']||'营销费用'}}：<text style="color: #FF3B30;">{{item.showsalesfeesamount||' --'}}</text>
        </view>
    </navigator>
    <Yl_Files id="Yl_Files{{item.sys_datafollowupid}}" wx:if="{{item.attinfos.length}}" attinfos='{{item.attinfos}}' />
    <commentList id="Comment{{item.sys_datafollowupid}}" comments='{{item.comment}}' quantity="{{item.commentqty}}" ownerid='{{item.sys_datafollowupid}}' bind:updateCommentList='updateCommentList' />
    <view class="bottom">
        <navigator url="#" class="comment" bind:tap="comment" id="Comment{{item.sys_datafollowupid}}">
            <text class="iconfont icon-huifu" /><text style="color: #3874F6;">{{language['评论']||'评论'}}({{item.commentqty || 0}})</text>
        </navigator>
        <view style="flex:1;" />
        <navigator 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="{{list.length==0}}" />