<viewDate title='分析日期' bind:onChange='changeDate' />
<filtrate id='Filtrate' iconName='icon-xiangmuleixing' wx:if='{{types.length}}' list='{{types}}' type="{{content.where.projecttype}}" title='项目类型' bind:onChange='changeType2' />
<filtrate id='Filtrate1' iconName='icon-xiangmuzhuangtai' list='{{[]}}' title='项目状态' bind:clickOpen='clickOpen' />
<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/project/detail?id={{item.sa_projectid}}" class="global-card item" wx:for="{{list}}" wx:key="sa_projectid">
        <view class="title">
            <text class="line-1">{{item.projectname || " --"}}</text>
            <view class="status" style="background-color: {{sColors[item.status]}};">
                {{language[item.status]||item.status}}
            </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">
            <view class="col">{{language['项目阶段']||'项目阶段'}}：{{language[item.stagename] || item.stagename ||' --'}}</view>
            <view class="col">{{language['报备进度']||'报备进度'}}：<text style="color: {{sColors[item.status]}};">{{language[item.reportstatus] || item.reportstatus ||'--'}}</text></view>
        </view>
        <view class="row">{{language['预计签约金额']||'预计签约金额'}}：{{item.signamount_due ||' --'}}</view>
        <view class="row">{{language['项目成交金额']||'项目成交金额'}}：{{item.dealamount ||' --'}}</view>
        <view class="row">{{language['项目地址']||'项目地址'}}：{{item.province + item.city +item.county +item.address}}</view>
        <view class="row">{{language['项目编号']||'项目编号'}}：{{item.projectnum ||' --' }}</view>
        <view class="row">{{language['项目规模']||'项目规模'}}：{{item.scale + (language[item.unitname] || item.unitname||'')}}
        </view>
        <view class="row">{{language['领域']||'领域'}}：{{language[item.tradefield] || item.tradefield||' --'}}</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>
<Yl_Filtrate1 show='{{filterShow}}' list="{{filtratelist}}" bindhandle="handleFilter" />