<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{content.dateType}}' bind:onChange='changeDate' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
	<view class="global-card" wx:if='{{!list[0].isEmpty}}'>
		<view class="chart">
			<ec-canvas id="mychart" canvas-id="chart" ec="{{ ec }}"></ec-canvas>
		</view>
	</view>
	<My_empty wx:if='{{list[0].isEmpty}}' />
	<block wx:else>
		<view class="global-card item" hover-class="navigator-hover" wx:for="{{list}}" wx:key="sa_customersid" data-item="{{item}}" bind:tap="toDetail">
			<view class="title">
				<text class="line-1">{{item.enterprisename || " --"}}</text>
				<view class="status" style="background-color: {{sColors[item.status]}};">{{language[item.status]||item.status}}</view>
				<view class="status status2" style="background-color: {{sColors[item.tradingstatus]}};">{{language[item.tradingstatus]||item.tradingstatus}}</view>
			</view>
			<view class="tag-box">
				<van-tag custom-class='tag' wx:for="{{item.sys_tag}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{language[tag]||tag}}</van-tag>
			</view>
			<view class="row">
				<view class="col">{{language['负责人']||'负责人'}}：{{language[item.name]||item.name||' --'}}</view>
				<view class="col">{{language['部门']||'部门'}}：{{language[item.depname]||item.depname||' --'}}</view>
			</view>
			<view class="row">{{language['医院类型']||'医院类型'}}：{{language[item.type] || item.type ||' --'}}</view>
			<view class="row">{{language['客户分类']||'客户分类'}}：{{language[item.customergrade] || item.customergrade ||' --'}}</view>
			<view class="row">{{language['客户等级']||'客户等级'}}：{{item.grade}}</view>
			<view class="row">{{language['上级企业']||'上级企业'}}：{{item.parententerprisename ||' --' }}</view>
			<view class="row">{{language['来源']||'来源'}}：{{item.source||' --'}}</view>
			<view class="row">{{language['创建时间']||'创建时间'}}：{{item.createdate ||' --'}}</view>
		</view>
		<My_empty wx:if="{{list.length==0}}" />
	</block>
</Yl_ListBox>