<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.itrdclDeclareId }}</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">总毛重</text>
					<text class="desc">{{ item.sumGrossWt }}</text>
				</view>
				<view class="item">
					<text class="label">总净重</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.orgPutrecNo }}</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" v-if="item.declareType == '4'">
					<text class="label">合作社信用代码</text>
					<text class="desc">¥ {{ item.orgScc }}</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.tradeCountry }}</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>
		</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>
