<van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
</van-search>
<view class="global-total">总共{{params.content.total}}个</view>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="global-card product-item" wx:for="{{list}}" wx:key="itemid">
        <navigator class="product" url="#">
            <view class="mian">
                <view class="img" data-file="{{item.attinfos}}" catchtap="viewImage">
                    <van-image width="100%" height="100%" wx:if="{{item.cover}}" src="{{item.cover}}" use-loading-slot lazy-load>
                        <van-loading slot="loading" type="spinner" size="20" vertical />
                    </van-image>
                    <text wx:else class="err">{{language['暂无图片']||'暂无图片'}}</text>
                </view>
                <view class="dec">
                    <view class="title">
                        <text class="line-1">{{item.itemname}}</text>
                    </view>
                    <view class="subfield">
                        <text class="line-1" style="margin-right: 6rpx;">编号：{{item.itemno||' --'}}</text>
                        <text class="line-1" style="margin-right: 6rpx;">备货分类：{{item.goodstype||' --'}}</text>
                    </view>
                    <view class="subfield">
                        <text class="line-1" style="margin-right: 6rpx;">型号：{{item.model||' --'}}</text>
                        <text class="line-1" style="margin-right: 6rpx;">规格：{{item.spec||' --'}}</text>
                    </view>
                    <view class="subfield">
                        辅助说明：{{item.assistance||' --'}}
                    </view>
                    <view class="subfield">
                        俗称释义：{{item.explains||' --'}}
                    </view>
                    <view class="subfield">
                        营销类别：{{item.itemclassname||' --'}}
                    </view>
                </view>
                <view wx:if="{{!disabled}}" class="delete" data-item="{{item}}" catchtap="deleteProduct">
                    <text class="iconfont icon-guanlian-shanchu" />
                </view>
            </view>
        </navigator>
    </view>
    <view wx:if="{{!radio}}" style="height: 70rpx;" />
    <My_empty wx:if="{{!list.length}}" />
</Yl_ListBox>
<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>

<wxs src="../../../utils/nominalpressure.wxs" module="join"></wxs>