<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' use-action-slot bind:clear='onClear'>
    <view slot='action' class="action" catchtap="openFiltrate">
        <text class="iconfont icon-shaixuan" />{{language['筛选']||'筛选'}}
    </view>
</van-search>
<view class="div" style="height: 20rpx;" />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="{{idname}}" data-id="{{item[idname]}}" bindtap="changeResult">
        <view class="con">
            <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
            <view class="mian">
                <view class="title">
                    <text class="projecttype" style="background-color: #3874F6;" wx:if="{{language[item.projecttype]||item.projecttype}}">{{language[item.projecttype]||item.projecttype}}</text>
                    <text class="tradefield" style="background-color: #5AB73F;" wx:if="{{item.tradefield}}">{{language[item.tradefield]||item.tradefield}}</text>
                    <view class="line-1">
                        {{item.projectname}}
                    </view>
                </view>
                <view class="row" style="margin-top: 16rpx;">
                    <view class="left">
                        {{language['业务员']||'业务员'}}：{{item.name||' --'}}
                    </view>
                    <view class="right">
                        {{language['项目阶段']||'项目阶段'}}：{{item.stagename||' --'}}
                    </view>
                </view>
                <view class="row" style="margin-top: 8rpx;">
                    <view class="left">
                        {{language['预计签约金额']||'预计签约金额'}}：{{item.signamount_due||' --'}}
                    </view>
                    <view class="right">
                        {{language['预计签约时间']||'预计签约时间'}}：{{item.signdate_due||' --'}}
                    </view>
                </view>
            </view>
        </view>
    </navigator>
    <view style="height: 150rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>
<view style="height: 130rpx;" />
<block wx:if="{{!radio}}">
    <view class="footer">
        <view class="count">
            {{language['已选']||'已选'}}：{{result.length}}
        </view>
        <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">{{language['确定']||'确定'}}</van-button>
    </view>
    <wxs module="handle">
        module.exports = {
            isCheck: function (id, list) {
                return list.some(function (v) {
                    return v == id
                });
            },
        }
    </wxs>
</block>
<Yl_Filtrate1 show='{{showFiltrate}}' list='{{filtratelist}}' bindhandle="handleFilter" />