<van-tabs color='#3874F6' wx:if="{{list.length}}" active="{{ active }}" tab-class='tab-class' tab-active-class='tab-class' bind:change="tabsOnChange">
	<van-tab title="{{(language['客户销售']||'客户销售')+'TOP10'}}" name='20231010133804' />
	<van-tab title="{{(language['业务员销售']||'业务员销售')+'TOP10'}}" name='20231011111504' />
</van-tabs>
<view class="global-card tabs">
	<view wx:for="{{tabs}}" wx:key="item" class="tab {{content.sequence == item ? 'active':''}}" data-name='{{item}}' bind:tap="changeSequence">
		{{language[item]||item}}
	</view>
</view>
<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{content.dateType}}' bind:onChange='changeDate' />
<view class="global-card" style="margin-bottom: 0;padding: 0;">
	<Yl_ListBox id='ListBox' bind:getlist='getList'>
		<My_empty wx:if='{{!list.length||list[0].isEmpty}}' />
		<block wx:else>
			<view class="item" wx:for="{{list}}" wx:key="sys_enterpriseid">
				<view class="title">
					<text class="index" style="background:{{item.color}};">{{item.rowindex}}</text>
					{{item.enterprisename || item.name}}
				</view>
				<block wx:if="{{id == '20231010133804'}}">
					<view class="row">
						{{language['医院类型']||'医院类型'}}：{{language[item.type]||item.type || ' --'}}
					</view>
					<view class="row">
						{{language['客户分类']||'客户分类'}}：{{language[item.customergrade]||item.customergrade || ' --'}}
					</view>
					<view class="row">
						{{language['部门']||'部门'}}：{{language[item.depname]||item.depname || ' --'}}
					</view>
					<view class="row">
						{{language['业务员']||'业务员'}}：{{language[item.name]||item.name || ' --'}}
					</view>
				</block>
				<block wx:else>
					<view class="row">
						{{language['部门']||'部门'}}：{{language[item.depname]||item.depname || ' --'}}
					</view>
					<view class="row">
						{{language['客户总数']||'客户总数'}}：{{language[item.customersqty]||item.customersqty || '0'}}
					</view>
					<view class="row">
						{{language['产出客户数']||'产出客户数'}}：{{language[item.outproejct]||item.outproejct || '0'}}
					</view>
					<view class="row">
						{{language['项目总数']||'项目总数'}}：{{language[item.projectqty]||item.projectqty || '0'}}
					</view>
				</block>

				<view class="bottom">
					<view class="col">
						<view class="row">
							{{language['订单金额']||'订单金额'}}：<text style="color:{{content.sequence == '订单'?'#3874f6':''}};">{{item.amount}}</text>
						</view>
						<view class="row">
							{{language['开票金额']||'开票金额'}}：<text style="color:{{content.sequence == '开票'?'#3874f6':''}};">{{item.taxincludedamount}}</text>
						</view>
					</view>
					<view class="col">
						<view class="row">
							{{language['出货金额']||'出货金额'}}：<text style="color:{{content.sequence == '出货'?'#3874f6':''}};">{{item.outamount}}</text>
						</view>
						<view class="row">
							{{language['回款金额']||'回款金额'}}：<text style="color:{{content.sequence == '回款'?'#3874f6':''}};">{{item.writeoffamount}}</text>
						</view>
					</view>
				</view>
			</view>
		</block>
	</Yl_ListBox>
</view>