<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{dateType}}' bind:onChange='changeDate' />
<filtrate id='Filtrate' wx:if='{{typeList.length}}' list='{{typeList}}' type="{{content.where.type}}" title='订单类型' bind:onChange='changeType' />
<block>
    <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].allOrderQty || 0}}</view>
            </view>
            <view class="col" style='background-color: #68C23A'>
                <view class="label">{{language['订单总金额']||'订单总金额'}}</view>
                <view class="value">{{list[0].allAmount}}{{language['万']||'万'}}</view>
            </view>
        </view>
        <view class="row">
            <view class="col" style='background-color: #E6A33B;'>
                <view class="label">{{language['订单回款金额']||'订单回款金额'}}</view>
                <view class="value">{{list[0].cashbillAmount}}{{language['万']||'万'}}</view>
            </view>
            <view class="col" style='background-color: #F56C6D'>
                <view class="label">{{language['订单未出货金额']||'订单未出货金额'}}</view>
                <view class="value">{{list[0].allunAmount}}{{language['万']||'万'}}</view>
            </view>
        </view>
        <view class="row">
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['已出货未开票金额']||'已出货未开票金额'}}</view>
                <view class="value">{{list[0].alluninvoicamount}}{{language['万']||'万'}}</view>
            </view>
            <view class="col" style='background-color: #68C23A'>
                <view class="label">{{language['已开票未回款金额']||'已开票未回款金额'}}</view>
                <view class="value">{{list[0].allunwriteoffamount}}{{language['万']||'万'}}</view>
            </view>
        </view>
        <view class="row" style='margin-bottom:0;'>
            <view class="col" style='background-color: #E6A33B;' hover-class="navigator-hover" bindtap="viewInstructions">
                <view class="label">
                    {{language['参与项目订单金额']||'参与项目订单金额'}}
                    <view class="iconfont icon-gantanhao" />
                </view>
                <view class="value">{{list[0].joinOrderAmount}}{{language['万']||'万'}}</view>
            </view>
            <view class="col" />
        </view>
    </view>
    <shrink title="订单明细" wx:if="{{list[0].status}}" open='{{showList}}' bind:onChange='shrinkChange'>
        <view style='padding-top: 20rpx;'>
            <view class="global-card serve-item" wx:for='{{list}}' wx:key='sa_workorderid'>
                <view class="title">{{item.sonum}}</view>
                <view class="status" style="background-color:{{sColors[item.status]||'#3874F6'}}">
                    {{language[item.status]||item.status}}
                </view>
                <view class="line">{{language['负责人']||'负责人'}}：{{item.name || ' --'}}</view>
                <view class="line">
                    {{language['订单类型']||'订单类型'}}：{{language[item.type]||item.type || ' --'}}
                </view>
                <view class="line">{{language['订单金额']||'订单金额'}}：{{item.sumamount || ' --'}}</view>
                <view class="line">
                    {{language['订单未出货金额']||'订单未出货金额'}}：{{item.unoutOrderamount || ' --'}}
                </view>
                <view class="line">
                    {{language['已出货未开票金额']||'已出货未开票金额'}}：{{item.uninvoicamount || ' --'}}
                </view>
                <view class="line">
                    {{language['已开票未回款金额']||'已开票未回款金额'}}：{{item.unwriteoffamount || ' --'}}
                </view>
                <view class="line">
                    {{language['订单回款金额']||'订单回款金额'}}：{{item.writeoffamount || ' --'}}
                </view>
                <view class="line">
                    {{language['退款金额']||'退款金额'}}：{{item.returnamount || ' --'}}
                </view>
                <view class="line">{{language['审核日期']||'审核日期'}}：{{item.checkdate || ' --'}}</view>
            </view>
        </view>
    </shrink>
    <My_empty wx:else />
</block>