<view class="head">
    <view class="left">
        <view style="margin-top: 20rpx;">
            {{language['出货预测金额']||'出货预测金额'}}：<text>{{alloutamount||"￥0"}}</text>
        </view>
        <view style="margin-top: 12rpx;">
            {{language['开票预测金额']||'开票预测金额'}}：<text>{{allinvoiceamount||"￥0"}}</text>
        </view>
    </view>
    <view class="expand">
        <navigator wx:if="{{disabled}}" url="#" class="but" bindtap="add">
            <van-icon name="plus" />
        </navigator>
    </view>
</view>

<view class="mian" wx:for="{{list}}" wx:key="sonum">
    <view class="title">
        <text class="projecttype" style="background-color: #3874F6;" wx:if="{{item.type}}">{{language[item.type]||item.type}}</text>
        <text class="tradefield" style="background-color: #5AB73F;" wx:if="{{item.tradefield}}">{{language[item.tradefield]||item.tradefield}}</text>
        <view>
            {{item.sonum}}
        </view>
        <view class="detele" wx:if="{{disabled}}" catchtap="deleteItem" data-item="{{item}}">
            <text class="iconfont icon-guanlian-shanchu" />
        </view>
    </view>
    <view class="row" style="margin-top: 16rpx;">
        <view class="left">
            {{language['业务员']||'业务员'}}：{{item.name||' --'}}
        </view>
        <view class="right">
            {{language['部门']||'部门'}}：{{language[item.depname]||item.depname}}
        </view>
    </view>
    <view class="row" style="margin-top: 8rpx;">
        <view class="left">
            {{language['企业名称']||'企业名称'}}：{{item.enterprisename||' --'}}
        </view>
        <view class="right">
            {{language['项目']||'项目'}}：{{item.projectname||' --'}}
        </view>
    </view>
    <view class="row" style="margin-top: 8rpx;">
        <view class="left">
            {{language['未出货金额']||'未出货金额'}}：{{item.showunoutamount||' --'}}
        </view>
        <view class="right">
            {{language['未开票金额']||'未开票金额'}}：{{item.showuninvoiceamount||' --'}}
        </view>
    </view>
    <view class="row" style="margin-top: 8rpx;">
        {{language['备注']||'备注'}}：{{item.remarks||' --'}}
    </view>
    <view class="bottom">
        <view>
            <view class="label">
                {{language['出货预测金额(元)']||'出货预测金额(元)'}}：
            </view>
            <input type="digit" value="{{item.outamount}}" disabled="{{!disabled || (item.unoutamount==0 && item.uninvoiceamount>0)}}" data-name="outamount" data-item="{{item}}" bindblur="onBlur" />
        </view>
        <view>
            <view class="label">
                {{language['开票预测金额(元)']||'开票预测金额(元)'}}：
            </view>
            <input type="digit" value="{{item.invoiceamount}}" disabled="{{!disabled || (item.unoutamount>0 && item.uninvoiceamount==0)}}" data-name="invoiceamount" data-item="{{item}}" bindblur='onBlur' />
        </view>
    </view>
    <view class="row" style="padding-top: 20rpx;justify-content: space-between;">
        <view class="left">
            {{language['订单行数']||'订单行数'}}:{{item.orderqty}}
        </view>
        <navigator url="/packageA/invoiceforecast/modules/orderForm/row?id={{item.sa_salesforecastprojectid}}&sa_orderid={{item.sa_orderid}}&disabled={{disabled}}&unoutamount={{item.unoutamount}}" class="right" style="color: #3675F6;">
            {{language['查看明细']||'查看明细'}} >
        </navigator>
    </view>
</view>
<My_empty wx:if="{{!list.length}}" />