<Yl_nav search list='{{navList}}' sort='{{content.sort}}' bind:onClick='navClick' bind:onSearch='onSearch' />
<view class="global-total">
	总共{{content.total}}个
</view>
<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<navigator url="/prsx/hospital/detail?id={{item.sa_customersid}}" class="project-item" wx:for="{{list}}" wx:key="sa_customersid">
		<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>
	<My_empty wx:if="{{list.length==0}}" />
</Yl_ListBox>
<!-- 显示类型 -->
<van-action-sheet show="{{ classShow }}" actions="{{ classActions }}" cancel-text="取消" bind:click-overlay='classClose' bind:cancel="classClose" bind:select="classSelect" />
<!-- 筛选条件 -->
<Yl_Filtrate1 show='{{filterShow}}' list="{{filtratelist}}" dateRange bindhandle="handleFilter" dateRangeName='创建日期' />
<!-- 浮动按钮 -->
<Yl_FloatingButton wx:if="{{insert}}" bindtap="toAdd" />

<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>