<van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="{{language['关键字']||'请输入搜索关键词'}}" bind:search='startSearch' bind:clear='onClear' />
<view class="total">
    <text wx:if="{{language['总共']}}">{{language['总共']}}：{{params.content.total}}</text>
    <text wx:else>总共{{params.content.total}}个</text>
</view>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <navigator class="offer-list" url="#" wx:for="{{list}}" wx:key="billno" data-id="{{item[idname]}}" bindtap="changeResult">
        <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
        <view class="box">
            <view class="title">
                <text class="line-1">{{language['单号']||'单号'}}：{{item.billno}}</text>
            </view>
            <view class="tag-box">
                <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
                <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
            </view>
            <view class="exp line-1">{{language['客户']||'客户'}}：<text>{{item.enterprisename||" --"}}</text></view>
            <view class="exp line-1">{{language['审核日期']||'审核日期'}}：<text>{{item.checkdate|| ' --'}}</text></view>
            <view class="exp line-1">{{language['特价']||'特价'}}：<text>{{language[item.spec]||item.specialoffer==1?'是':'否'}}</text></view>
            <view class="exp line-1">{{language['负责人']||'负责人'}}：<text>{{item.leader[0].name||' --'}}</text></view>
        </view>
    </navigator>
    <view style="height: 230rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>

<block wx:if="{{!radio}}">
    <view style="height: 130rpx;" />
    <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>
</block>

<wxs module="handle">
    module.exports = {
        isCheck: function (id, list) {
            return list.some(function (v) {
                return v == id
            });
        },
    }
</wxs>