<template>
	<view>
		<view class="cmain">
			<view class="box order_detail">
				<view class="item">
					<text class="label">订单编号</text>
					<text class="desc">{{ item.orderNo }}</text>
				</view>
				<view class="item">
					<text class="label">商品名称</text>
					<text class="desc">{{ item.goodsName }}</text>
				</view>
				<view class="item">
					<text class="label">上架金额</text>
					<text class="desc omit">{{ item.resalePrice}}元</text>
				</view>
				<view class="item">
					<text class="label">单价</text>
					<text class="desc">{{ item.singlePrice }}</text>
				</view>
				<view class="item">
					<text class="label">计价单位</text>
					<text class="desc">{{ item.goodsUnit }}</text>
				</view>
				<view class="item">
					<text class="label">商品重量</text>
					<text class="desc">{{ item.netWet }}</text>
				</view>
				<view class="item" v-if="item.purchaserName">
					<text class="label">收购商</text>
					<text class="desc">{{ item.purchaserName }}</text>
				</view>
				<view class="item">
					<text class="label">车牌</text>
					<text class="desc">{{ item.veNo }}</text>
				</view>
				<view class="item" v-if="item.createTime">
					<text class="label">上架时间</text>
					<text class="desc">{{ item.createTime }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {},
		};
	},
	onLoad(e) {
		if (e.id) {
			this.http.request({
				url: '/level-two-server/app/TbOrders/getDetailById',
				data: { ids: e.id },
				success: res => {
					let data = res.data.data;
					this.item = data[0];
				}
			});
		}
	},
	methods: {
		
	}
};
</script>

<style lang="scss">
page {
	background-color: $pg;
}
</style>
