<navigator url="/packageA/orderForm/detail?id={{item.sa_orderid}}" class="item" wx:for="{{list}}" wx:key="sonum">
    <view class="top">
        <view class="tags">
            <text wx:if="{{item.type}}">{{item.type}}</text>
            <text wx:if="{{item.brandname}}">{{item.brandname}}</text>
            <text wx:if="{{item.tradefield}}">{{item.tradefield}}</text>
        </view>
        <view class="statu" style="color: {{set.color(item.status)}};">
            {{item.status}}
        </view>
    </view>
    <view class="content">
        <view class="num">
            {{item.type}}：{{item.sonum}}
        </view>
        <view class="exp">
            区域经理：{{item.salename || ' --'}}
        </view>
        <view class="exp">
            单据时间：{{item.billdate}}
        </view>
        <view class="exp">
            退回原因：{{item.backreason || ' --'}}
        </view>
        <view class="exp">
            共计{{item.qty}}件商品
        </view>
        <view class="amount">
            合计:{{handleHide.query(item.defaultamount,hidePrice)}}元
        </view>
    </view>
    <view wx:if="{{item.contacts.length||item.name}}" class="bottom line-1">
        <text style="margin-right: 10rpx;">{{item.contacts[0].name||item.name}}</text>
        <text style="margin-right: 10rpx;">{{item.contacts[0].phonenumber||item.phonenumber}}</text>
        <text style="margin-right: 10rpx;">{{item.contacts[0].address||item.address}}</text>
    </view>

    <view wx:else class="bottom">
        暂无收货人
    </view>
</navigator>

<Yl_Empty wx:if="{{list.length==0}}" />
<wxs src="/utils/hidePrice.wxs" module="handleHide" />
<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>