<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.declareId}}</text>
					</view>
					<view class="item">
						<text class="label">互市区</text>
						<text class="desc">{{item.fieldName}}</text>
					</view>
					<view class="item" style="padding-top: 0px">
						<text class="label">申报人</text>
						<text class="desc">{{item.declareName}}</text>
					</view>
					<view class="item" style="padding-top: 0px">
						<text class="label">申报时间</text>
						<text class="desc">{{item.declTime}}</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">净重(kg)</text>
						<text class="desc">{{item.sumNetWt}}</text>
					</view>
					<view class="item">
						<text class="label">毛重(kg)</text>
						<text class="desc">{{item.sumGrossWt}}</text>
					</view>
					<view class="item">
						<text class="label">价格(元)</text>
						<text class="desc">{{item.sumAmt}}</text>
					</view>
					<view class="item">
						<text class="label">状态</text>
						<text class="desc" v-if="item.finishStatus==0">监管中</text>
						<text class="desc" v-if="item.finishStatus==1">已完成</text>
					</view>
					<view class="item">
						<text class="label">完成时间</text>
						<text class="desc">{{item.finishTime}}</text>
					</view>
					<view class="item">
						<text class="label">边民信息</text>
						<text class="desc" style="color: blue;" @click="toPersonDetail(item.id)">详情</text>
					</view>
				</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {},
			param: {},
		};
	},
	onLoad(e) {
		if (e.id) {
			this.param.id = e.id
			this.http.request({
				url: '/level-one-server/app/HtTradeSettlement/getById',
				data: this.param,
				success: res => {
					this.item = res.data.data;
				}
			});
		}
		
	},
	methods: {
		toPersonDetail(id){
			uni.navigateTo({
				url: '/pages/market/one/enterprise/person-list?id=' + id
			});
		}
	}
};
</script>

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