<timeRange id='TimeRange' dateType='{{dateType}}' bind:onChange='changeDate' />
<block>
    <view class="global-card" style='margin-top:0;'>
        <view class="row">
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['客户数']||'客户数'}}</view>
                <view class="value">{{list[0].enterprisename ? content.total : 0}}</view>
            </view>
            <view class="col" style='background-color: #68C23A'>
                <view class="label">{{language['客户成交数量']||'客户成交数量'}}</view>
                <view class="value">{{list[0].tradingqty|| 0}}</view>
            </view>
        </view>
        <view class="row">
            <view class="col" style='background-color:  #E6A33B'>
                <view class="label">{{language['客户成交金额']||'客户成交金额'}}</view>
                <view class="value">{{list[0].tradingamount}}</view>
            </view>
            <view class="col" hover-class="navigator-hover" style='background-color:  #F56C6D' bindtap="viewInstructions">
                <view class="label">
                    {{language['成交率']||'成交率'}}
                    <view class="iconfont icon-gantanhao" />
                </view>
                <view class="value">{{list[0].tradingcjl}}</view>
            </view>
        </view>
    </view>
    <shrink title="客户明细" wx:if="{{list[0].enterprisename}}" open='{{showList}}' bind:onChange='shrinkChange'>
        <view style='padding-top: 20rpx;'>
            <navigator url="/packageA/setclient/detail?id={{item.sa_customersid}}" class="global-card serve-item" wx:for='{{list}}' wx:key='sa_customersid'>
                <view class="title">{{item.name || '--'}}</view>
                <view class="tags">
                    <view class="tag" wx:for='{{item.tag}}' wx:for-item='tag' wx:key='tag' style="background-color:{{sColors[tag]||'#3874F6'}}">
                        {{language[tag]||tag}}
                    </view>
                </view>
                <view class="status" style="background-color:{{sColors[item.status]||'#3874F6'}}">
                    {{language[item.status]||item.status}}
                </view>
                <view class="status status2" style="background-color:{{sColors[item.tradingstatus]||'#3874F6'}}">
                    {{language[item.tradingstatus]||item.tradingstatus}}
                </view>
                <view class="line">
                    {{language['医院类型']||'医院类型'}}：{{language[item.type]||item.type||'--'}}
                </view>
                <view class="line">
                    {{language['客户分类']||'客户分类'}}：{{language[item.customergrade]||item.customergrade||'--'}}
                </view>
                <view class="line">
                    {{language['客户等级']||'客户等级'}}：{{language[item.grade]||item.grade||'--'}}
                </view>
                <view class="line">
                    {{language['所属行业']||'所属行业'}}：{{language[item.industry]||item.industry||'--'}}
                </view>
            </navigator>
        </view>
    </shrink>
    <My_empty wx:else />
</block>