<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{dateType}}' bind:onChange='changeDate' />
<filtrate id='Filtrate' wx:if='{{typeList.length}}' list='{{typeList}}' type="{{type}}" title='报价单类型' bind:onChange='changeType' />
<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].isEmpty?content.total: 0}}</view>
        </view>
        <view class="col" style='background-color: #68C23A'>
            <view class="label">{{language['最近报价金额']||'最近报价金额'}}</view>
            <view class="value">{{list[0].topQuotedpriceamount}}{{language['万']||'万'}}</view>
        </view>
    </view>
    <view class="row">
        <view class="col" style='background-color: #E6A33B;'>
            <view class="label">{{language['最近报价时间']||'最近报价时间'}}</view>
            <view class="value">{{list[0].submitdate||list[0].billdate||'--'}}</view>
        </view>
    </view>
</view>
<shrink title="报价单明细" wx:if="{{!list[0].isEmpty}}" open='{{showList}}' bind:onChange='shrinkChange'>
    <view style='padding-top: 20rpx;'>
        <navigator url="/packageA/offers/detail?sa_quotedpriceid={{item.sa_quotedpriceid}}" class="global-card serve-item" wx:for='{{list}}' wx:key='sa_quotedpriceid'>
            <view class="title">{{item.projectnum}}</view>
            <view class="line">
                {{language['报价类型']||'报价类型'}}：{{language[item.quotedpricetype]||item.quotedpricetype || ' --'}}
            </view>
            <view class="line">
                {{language['项目名称']||'项目名称'}}：{{language[item.projectname]||item.projectname || ' --'}}
            </view>
            <view class="line">{{language['项目编号']||'项目编号'}}：{{item.projectnum || '0'}}</view>
            <view class="line">{{language['客户名称']||'客户名称'}}：{{item.enterprisename || ' --'}}</view>
            <view class="line">
                {{language['报价金额']||'报价金额'}}：{{item.quotedpriceamount || ' --'}}
            </view>
            <view class="line">
                {{language['综合折扣']||'综合折扣'}}：{{item.avgdiscountrate||item.discountrate || ' --'}}
            </view>
            <view class="line">
                {{language['特价']||'特价'}}：<text style="color:{{sColors[item.specialoffer==1?'是':'否']||'999999'}}">{{language[item.specialoffer==1?'是':'否']||item.specialoffer==1?'是':'否' || ' --'}}</text>
            </view>
            <view class="line">
                {{language['报价日期']||'报价日期'}}：{{item.submitdate||item.billdate || ' --'}}
            </view>
            <view class="line">
                {{language['有效期']||'有效期'}}：{{item.begdate+(language['至']||'至')+item.enddate }}
            </view>
            <view class="line">{{language['负责人']||'负责人'}}：{{item.name || ' --'}}</view>
        </navigator>
    </view>
</shrink>
<My_empty wx:else />