<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{content.dateType}}' bind:onChange='changeDate' />

<filtrate id='Filtrate' iconName='icon-xiangmuzhuangtai' list='{{[]}}' title='项目状态' bind:clickOpen='clickOpen' />

<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_projectid" bind:tap="toDetail">
			<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['创建时间']||'创建时间'}}：{{item.createdate ||' --'}}</view>
		</view>
		<My_empty wx:if="{{list.length==0}}" />
	</block>
</Yl_ListBox>

<Yl_Filtrate1 show='{{filterShow}}' list="{{filtratelist}}" bindhandle="handleFilter" />