<navigator url="/packageA/borrow/detail?id={{item.sa_orderid}}" class="item" wx:for="{{list}}" wx:key="sonum">
    <view class="top">
        单据日期：{{item.billdate}}
        <view style="color: {{set.color(item.status)}};">
            {{item.status}}
        </view>
    </view>
    <view class="content">
        <view class="num">
            单号：{{item.sonum}}
        </view>
       <!--  <view class="exp">
            区域经理：{{item.name || ' --'}}
        </view> -->
        <view class="exp">
            审核日期：{{item.checkdate || ' --'}}
        </view>
        <view class="exp">
            合计数量：{{item.qty}}
        </view>
        <view class="amount">
            合计:{{item.amount}}元
        </view>
    </view>

    <view wx:if="{{item.name}}" class="bottom line-1">
        <text style="margin-right: 10rpx;">{{item.name}}</text>
        <text style="margin-right: 10rpx;">{{item.phonenumber}}</text>
        <text style="margin-right: 10rpx;">{{item.address}}</text>
    </view>
    <view wx:else class="bottom">
        暂无收货人
    </view>
</navigator>

<Yl_Empty wx:if="{{list.length==0}}" />

<wxs module="set">
    module.exports = {
        color: function (statu) {
            var color = '#999999';
            switch (statu) {
                case "审核":
                    color = '#FA8C16';
                    break;
                case "提交":
                    color = '#52C41A';
                    break;
                case "新建":
                    color = '#333333';
                    break;
            };
            return color;
        }
    }
</wxs>