<van-search value="{{ params.content.where.condition }}" shape='round' placeholder="{{language['关键字']||'请输入搜索关键词'}}" 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'>
    <navigator url="#" class="project-item" wx:for="{{list}}" wx:key="sa_customersid" data-id="{{item.sa_customersid}}" bind:tap="changeResult">
        <view class="chart">
            <view class="circle">
                <view class="circle_left ab" style="{{render.leftRate(item.progress)}}" />
                <view class="circle_right ab" style="{{render.rightRate(item.progress)}}" />
                <view class="circle_text">
                    <text class="value">{{item.stage+'/'+item.totalstage}}</text>
                    <text class="name">{{item.stagename}}</text>
                </view>
            </view>
        </view>
        <view class="main">
            <view class="label">
                <view class="title line-1">{{item.enterprisename}}</view>
                <view class="state" style="background-color: {{sColors[item.tradingstatus]}}">{{item.tradingstatus}}</view>
            </view>
            <view class="tag-box">
                <view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{language[item]||item}}</view>
				<view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{language[item]||item}}</view>
            </view>
            <view class="replenish">
                <text style="color: #666;">医院编号：</text>
                <text>{{item.billno || ' --'}}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">省市县：</text>
                <text>{{item.province + item.city +item.county }}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">医院等级：</text>
                <text>{{item.grade || ' --'}}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">预估手术总量：</text>
                <text>{{item.totalop || ' --'}}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">开发状态：</text>
                <text style="color: {{sColors[item.status]}}">{{item.status}}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">负责人：</text>
                <text>{{item.leader[0].name || '--'}}</text>
            </view>
            <view class="replenish">
                <text style="color: #666;">营销区域：</text>
                <text>{{item.areaname || ' --'}}</text>
            </view>
        </view>
    </navigator>
    <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>


<wxs module="render">
    module.exports = {
        rightRate: function (rate) {
            if (rate - 0 < 50) {
                return 'transform: rotate(' + 3.6 * (rate - 0) + 'deg);';
            } else {
                return 'transform: rotate(0);border-color: var(--assist);';
            }
        },
        leftRate: function (rate) {
            if (rate - 0 >= 50) {
                return 'transform: rotate(' + 3.6 * (rate - 50) + 'deg);';
            }
        }
    }
</wxs>