<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_hospitaldepid" data-id="{{item.sa_hospitaldepid}}" 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.hospitaldepname}}</view>
			</view>
			<view class="tag-box">
				<view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{item}}</view>
				<view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{item}}</view>
			</view>
			<view class="replenish">
				<text style="color: #666;">科室类别：</text>
				<text>{{item.type}}</text>
			</view>
			<view class="replenish">
				<text style="color: #666;">所属医院：</text>
				<text>{{item.enterprisename || ' --'}}</text>
			</view>
			<view class="replenish">
				<text style="color: #666;">科室负责人：</text>
				<text>{{item.doctors || '--'}}</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.remarks || '--'}}</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>