<template>
	<view>
		<view class="ulList" style="overflow: scroll;">
			<ul>
				<li>
					<uni-card :title="'默认仓库'" :sub-title="111" :extra="111">
						<view class="uni-body" style="font-weight: bold;font-size: 30rpx;">
							<text class="cardText" style="font-size: 30rpx;">单号：</text> 
							{{item.id}}
						</view>
						<view class="uni-body"><text class="cardText">销售员：</text> {{item.createByName == null ?'暂无':item.createByName}}</view>
						<view class="uni-body"> 
							<text class="cardText">销售金额：</text>
							<text class="priceText">{{item.realAmount == null ?'暂无':item.realAmount}}</text>
							<text decode class="cardText">{{'&nbsp;&nbsp;&nbsp;&nbsp; 欠款： '}}</text> 
							<text class="priceText" style="color:red;">{{item.noEarn == null ?'暂无':item.noEarn}}</text>
						</view>
						<view class="uni-body" v-if="item.returnSaleProductCount > 0">
							<text class="cardText">退货金额：</text>
							<text class="priceText">{{item.returnSaleTotalAmount == null ?'暂无':item.returnSaleTotalAmount}}</text>
							<text decode class="cardText">{{'&nbsp;&nbsp;&nbsp;&nbsp; 退货数： '}}</text> 
							<text class="priceText">{{item.returnSaleProductCount == null ?'暂无':item.returnSaleProductCount}}</text>
						</view>
						<view class="uni-body"> <text class="cardText">
							订单状态：</text>{{item.status == '0' ?'待抢单' :item.status == '2' ?'作废' :item.status == '1' ?'待取货' :item.status == '3' ?'待送达' :item.status == '4' ?'已完成' :item.status == '5' ?'下游客户待退货' :item.status == '00' ?'退货待抢单' :item.status == '01' ?'退货待取货' :item.status == '03' ?'退货待送达' :item.status == '04' ?'待确认退货' :item.status == '6' ?'待配货':item.status == '8' ?'待物流上门':item.status == '9' ?'已完成' :'挂单'}}
						</view>
						<view class="floatRight" v-if="item.status == 6" @tap.stop="goSaleGoods(item)">去开单</view>
						<view class="floatRight" v-if="item.status == 4" @tap.stop="cancelOrder(item,'',index)">撤销</view>
						<view class="floatRight" v-if="item.status == 4" @tap.stop="cancelOrder(item,'goPay')">撤销并复制</view>
						<view class="floatRight" v-if="item.status == 2" @tap.stop="goSaleGoods(item)">重新开单</view>
						<view class="floatRight" style="color: red;width: 150rpx;" @tap.stop="delItemModal(item)" v-if="item.status == 6">删除订单</view>
					</uni-card>	
				</li>
				<u-loadmore :status="status" />
			</ul>
		</view>
		<!-- <u-empty v-else mode="order" margin-top="200"></u-empty> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onLoad(options) {
			
			
		},
		onShow(){
			
			
		},
		onReachBottom() {
			
			
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.u-transition{
		width: 100%;
		position: fixed;
		top: 226rpx;
		z-index: 99;
	}
	.search {
		padding: 20upx;
		background-color: #fff;
		width: 100%;
		background-color: #fff;
	}
	.uni-searchbar{
		padding: 20rpx 0 !important;
	}
	.dayin-text{
		flex: 1;
		text-align: right;
		padding-right: 20rpx;
		text-decoration: underline;
		color: blue;
	}
	.ulList {

		ul {
			li {
				font-size: 12px;

				.floatRight {
					float: right;
					padding: 14rpx;
					color: $u-primary;
					font-size: 26upx;
				}

				.cardText {
					font-size: 12px;
				}

				.priceText {
					color: $u-primary;
					font-size: 14px;
				}
			}
		}
	}
	.order-bottom{
		background: #fff;
		height: 120rpx;
		width: 100%;
		position: fixed;
		bottom:0;
		
		button{
			width: 90%;
			height: 80rpx;
			margin: 0 auto;
			background: #088FEB;
			color: #fff;
			margin-top: 20rpx;
		}
	}
	.paixu-content{
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		font-size: 30rpx;
		font-weight: bold;
	}
	.nahuo-mask{
		height: 1200rpx;
		background: rgba(0, 0, 0, 0.6);
		position: fixed;
		top: 100px;
		right: 0;
		z-index: 100;
		width: 100%;
	}
</style>