<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 omit">{{ item.platSeqNo }}</text>
				</view> -->
				<view class="item">
					<text class="label">申报编号</text>
					<text class="desc">{{ item.preNo }}</text>
				</view>
				<!-- <view class="item">
					<text class="label">申报人类型</text>
					<text class="desc">{{ item.declareType }}</text>
				</view> -->
				<view class="item">
					<text class="label">申报人姓名</text>
					<text class="desc">{{ item.declareName }}</text>
				</view>
				<!-- <view class="item">
					<text class="label">申报人身份证号</text>
					<text class="desc">{{ item.ciphertextIdno }}</text>
				</view> -->
				<view class="item" v-if="item.declareType == '2'">
					<text class="label">商铺编码</text>
					<text class="desc">{{ item.shopNo }}</text>
				</view>
				<view class="item" v-if="item.declareType == '2'">
					<text class="label">商铺名称</text>
					<text class="desc">{{ item.shopName }}</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.gLimit }}</text>
				</view> -->

				<view class="item">
					<text class="label">总金额</text>
					<text class="desc">¥{{ item.sumAmt }}</text>
				</view>
				<view class="item">
					<text class="label">总毛重(kg)</text>
					<text class="desc">{{ item.sumGrossWt }}</text>
				</view>
				<view class="item">
					<text class="label">总净重(kg)</text>
					<text class="desc">{{ item.sumNetWt }}</text>
				</view>
				<view class="item">
					<text class="label">币制</text>
					<text class="desc">{{ item.currCode }}</text>
				</view>
				<view class="item">
					<text class="label">件数</text>
					<text class="desc">{{ item.packNo }}</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.trafMode }}</text>
				</view>
			
				<view class="item" v-if="item.declareType == '3' || item.declareType == '4'">
					<text class="label" v-if="item.declareType == '3'">互助组名称</text>
					<text class="label" v-if="item.declareType == '4'">合作社名称</text>
					<text class="desc">{{ item.orgName }}</text>
				</view>
				<view class="item">
					<text class="label">监管场所</text>
					<text class="desc">{{ item.fieldName }}</text>
				</view>
				<view class="item">
					<text class="label">申报时间</text>
					<text class="desc">{{ item.declTime }}</text>
				</view>
				<!-- <view class="item">
					<text class="label">企业编码</text>
					<text class="desc">{{ item.entCode }}</text>
				</view>
				<view class="item">
					<text class="label">企业名称</text>
					<text class="desc">{{ item.entName }}</text>
				</view> -->
				<view style="height: 150rpx;"></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/TbImportOrder/importOrderDetail',
				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>
