<view class="head" bindtap="changeDataType">
    <view class="item {{content.dataType==10?'active':''}}" id='10'>
        报价单
    </view>
    <view class="item {{content.dataType==11?'active':''}}" id='11'>
        合同
    </view>
    <view class="item" style="opacity: 0;">

    </view>
    <navigator url="#" class="filter" catchtap="openFiltrete">
        <text class="iconfont icon-shaixuan" />
    </navigator>
</view>

<Yl_ListBox id='ListBox' bind:getlist='getList'>
    <view class="content-box" wx:for="{{list}}" wx:key="changedate">
        <block wx:if="{{content.dataType==10}}">
            <view class="title line-1">
                <text wx:if="{{item.quotedpricetype}}">{{item.quotedpricetype}}</text>
                <view class="line-1" style="width: 430rpx;">
                    单号：{{item.projectnum}}
                </view>
                <view class="status" style="background-color: {{item.status=='新建'?'#3874F6':item.status=='提交'?'#5AB73F':'#F29C37'}};">
                    {{item.status}}
                </view>
            </view>
            <view class="rep">
                业务员：{{item.name}}
                <block wx:if="{{item.name && item.depname}}">
                    -
                </block>
                {{item.depname}}
            </view>
            <view class="rep">
                项目：{{item.projectnum?item.projectnum+'-'+item.projectname :' --'}}
            </view>
            <view class="rep">
                客户：{{item.enterprisename ||' --'}}
            </view>
            <view class="rep">
                创建时间：{{item.createdate ||' --'}}
            </view>
        </block>
        <block wx:if="{{content.dataType==11}}">
            <view class="title">
                <view class="line-1" style="width: 550rpx;">
                    {{item.title}}
                </view>
                <view class="status" style="background-color: {{item.status=='新建'?'#3874F6':item.status=='提交'?'#5AB73F':'#F29C37'}};">
                    {{item.status}}
                </view>
            </view>
            <view class="rep">
                编号：{{item.billno ||' --'}}
            </view>
            <view class="rep">
                业务员：{{item.name}}
                <block wx:if="{{item.name && item.depname}}">
                    -
                </block>
                {{item.depname}}
            </view>
            <view class="rep">
                合同类型：{{item.projectname ||' --'}}
            </view>
            <view class="rep">
                客户：{{item.enterprisename ||' --'}}
            </view>
            <view class="rep">
                创建时间：{{item.createdate ||' --'}}
            </view>
        </block>
    </view>
    <My_empty wx:if="{{!list.length}}" />
    <view style="height: 80rpx;" />
</Yl_ListBox>

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