<template>
	<view>
		<view class="cmain">
			<view class="box order_detail" style="margin-top: 0px">
				<u-divider text="订单信息"></u-divider>
				<view class="item" style="padding-top: 0px">
					<text class="label">订单编号</text>
					<text class="desc">{{item.tradeNo}}</text>
				</view>
				<view class="item">
					<text class="label">结算单号</text>
					<text class="desc omit">{{ item.settleBillNo }}</text>
				</view>
				<view class="item">
					<text class="label">预申报编号</text>
					<text class="desc omit">{{ item.platSeqNo }}</text>
				</view>
				<view class="item">
					<text class="label">买家</text>
					<text class="desc omit">{{ item.buyUserName }}</text>
				</view>
				<view class="item">
					<text class="label">车牌号</text>
					<text class="desc">{{ item.veNo }}</text>
				</view>
				<view class="item">
					<text class="label">商品名称</text>
					<text class="desc">{{ item.goodsNames }}</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.shopName }}</text>
				</view>
				<view class="item">
					<text class="label">申报金额</text>
					<text class="desc">¥ {{ item.totalPrice }}</text>
				</view>
				<view class="item">
					<text class="label">净重(kg)</text>
					<text class="desc">{{ item.netWt }}</text>
				</view>
				<view class="item">
					<text class="label">毛重(kg)</text>
					<text class="desc">{{ item.grossWt }}</text>
				</view>
				<view class="item">
					<text class="label">申报数量</text>
					<text class="desc">{{ item.buyQty }}</text>
				</view>
				<view class="item">
					<text class="label">交易地区名称</text>
					<text class="desc">{{ item.tradeAreaName }}</text>
				</view>
				<!-- <view class="item">
					<text class="label">进出口预申报单号</text>
					<text class="desc">{{ item.preIeportNo }}</text>
				</view> -->
				<view class="item">
					<text class="label">批次预录入号</text>
					<text class="desc">{{ item.preNo }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {},
			param: {},
		};
	},
	onLoad(e) {
		if (e.id) {
			this.param.orderId = e.id
			this.http.request({
				url: '/level-one-server/app/TbOrder/orderDetail',
				data: this.param,
				success: res => {
					this.item = res.data.data;
				}
			});
		}
	},
	methods: {
		//查看边民
		members(id) {
			uni.navigateTo({
				url: '/pages/market/one/leader/members?id=' + id
			});
		}
	}
};
</script>

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