<navigator url="/packageA/returnOne/detail?id={{item.sa_aftersalesmagid}}" 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.billno}}
		</view>
		<view class="exp" wx:if="{{userrole !='经销商'}}">
			经销商：{{item.enterprisename || ' --'}}
		</view>
		<view class="exp">
			来源单号：{{item.sonum || ' --'}}
		</view>
		<view class="exp">
			是否实物退回：{{item.isitemreturn==1?'是':'否'}}
		</view>
		<view class="amount">
			退款额:￥{{handleHide.query(item.returnamount||0,hidePrice)}}元
		</view>
	</view>
	<view class="bottom line-1">
		原因：{{item.reason ||'--'}}
	</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>
<wxs src="/utils/hidePrice.wxs" module="handleHide" />