<viewDate title='分析日期' bind:onChange='changeDate' />
<filtrate id='Filtrate' iconName='icon-kehuleixing' wx:if='{{types.length}}' list='{{types}}' type="{{content.where.type}}" title='医院类型' bind:onChange='changeType2' />
<filtrate id='Filtrate' iconName='icon-kehudengji' wx:if='{{grades.length}}' list='{{grades}}' type="{{content.where.grade}}" title='客户等级' bind:onChange='changeType3' />
<filtrate id='Filtrate' iconName='icon-chengjiaozhuangtai' list='{{tradingstatus}}' type="{{content.where.tradingstatus}}" title='成交状态' bind:onChange='changeType1' />
<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="global-card">
        <view class="chart">
            <ec-canvas id="mychart" canvas-id="chart" ec="{{ ec }}"></ec-canvas>
        </view>
        <view class="tips">{{language['注']||'注'}}：{{language['提示未显示的医院类型数量皆为0']||'提示未显示的医院类型数量皆为0'}}</view>
    </view>
    <navigator url="/packageA/setclient/detail?id={{item.sa_customersid}}" class="global-card item" wx:for="{{list}}" wx:key="sa_customersid">
        <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['负责人']||'负责人'}}：{{item.leader.length?item.leader[0].name :' --'}}</view>
            <view class="col">{{language['部门']||'部门'}}：{{item.leader.length?item.leader[0].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.partenenterprisename ||' --' }}</view>
        <view class="row">{{language['来源']||'来源'}}：{{item.source||' --'}}</view>
        <view class="row"> {{language['未跟进天数']||'未跟进天数'}}：
            <view style="color:#3874F6">
                {{item.unqty||'0'}}{{language['天']||'天'}}
            </view>
        </view>
        <view class="row">{{language['创建时间']||'创建时间'}}：{{item.createdate ||' --'}}</view>
    </navigator>
    <My_empty wx:if="{{list.length==0}}" />
    <view style="height: 100rpx;" />
</Yl_ListBox>