<!DOCTYPE html>
<html>
	<head>
		<title>-详情</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<!-- 所有的 css js 资源 -->
		<link rel="stylesheet" href="https://unpkg.com/element-ui@2.13.0/lib/theme-chalk/index.css">
		<link rel="stylesheet" href="../../static/sa.css">
		<script src="https://unpkg.com/vue@2.6.10/dist/vue.min.js"></script>
		<script src="https://unpkg.com/element-ui@2.13.0/lib/index.js"></script>
		<script src="https://unpkg.com/http-vue-loader@1.4.2/src/httpVueLoader.js"></script>
		<script src="https://unpkg.com/jquery@3.4.1/dist/jquery.js"></script>
		<script src="https://www.layuicdn.com/layer-v3.1.1/layer.js"></script>
		<script src="../../static/sa.js"></script>
		<style type="text/css">
			.c-panel .c-label{width: 15em;}
		</style>
	</head>
	<body>
		<div class="vue-box sbot" style="display: none;" :style="'display: block;'">
			<!-- ------- 内容部分 ------- -->
			<div class="s-body">
				<div class="c-panel">
					<el-form v-if="m">
						<el-row>
							<el-col span="12">
								<sa-info name="产品学名" br>{{m.goodsName}}</sa-info>
								<sa-info name="毛重(kg)" br>{{m.grossWeight}}</sa-info>
								<sa-info name="数量(件)" br>{{m.num}}</sa-info>
								<sa-info name="生产日期" br>{{m.productionDate}}</sa-info>
								<sa-info name="保质期(天)" br>{{m.expirationDate}}</sa-info>
								<sa-info name="储存条件" br>{{m.storageMode}}</sa-info>
								<sa-info name="生产方式" br>{{m.productionMode}}</sa-info>
								<sa-info name="原产国" br>{{m.origin}}</sa-info>
								<sa-info name="进口冷链食品生产商注册号" br>{{m.producerCode}}</sa-info>
								<sa-info name="货主单位" br>{{m.sendUnit}}</sa-info>
								<sa-info name="收货单位" br>{{m.receiveUnit}}</sa-info>
								<sa-info name="货物流向" br>{{m.route}}</sa-info>
							</el-col>
							<el-col span="12">
								<sa-info name="司机姓名" br>{{m.driverName}}</sa-info>
								<sa-info name="司机联系电话" br>{{m.driverPhone}}</sa-info>
<!--								<sa-info name="代理商" br>{{m.agent}}</sa-info>-->
								<sa-info name="代理人联系电话" br>{{m.agentPhone}}</sa-info>
								<sa-info name="运输车(车头牌)" br>{{m.chinaCarNo}}</sa-info>
								<sa-info name="运输车(车尾牌)" br>{{m.chinaCarSuff}}</sa-info>
								<sa-info name="越南车车牌" br>{{m.carNo}}</sa-info>
								<sa-info name="海关报关单据" br>{{m.customProof}}</sa-info>
								<sa-info name="进口检验检疫证书" br>{{m.quarantineProof}}</sa-info>
								<sa-info name="商铺" br>{{m.shop}}</sa-info>
								<sa-info name="生产批号" br>{{m.productionCode}}</sa-info>
								<sa-info name="柜号" br>{{m.containerCode}}</sa-info>
								<sa-info name="申报时间" br>{{m.createTime}}</sa-info>
							</el-col>
						</el-row>


					</el-form>
				</div>
			</div>
			<!-- ------- 底部按钮 ------- -->
			<div class="s-foot">
				<el-button type="success" @click="sa.closeCurrIframe()">确定</el-button>
				<el-button @click="sa.closeCurrIframe()">取消</el-button>
			</div>
		</div>
		<script>
			var app = new Vue({
				components: {
					"sa-info": httpVueLoader('../../sa-frame/com/sa-info.vue')
				},
				el: '.vue-box',
				data: {
					id: sa.p('id', 0),	// 获取数据ID 
					m: null
				},
				methods: {
				},
				mounted: function() {
					sa.ajax('/TbDeclare/getById?id=' + this.id, function(res) {
						this.m = res.data;
						if(res.data == null) {
							sa.alert('未能查找到 id=' + this.id + " 详细数据");
						}
					}.bind(this))
				}
			})
			
		</script>
	</body>
</html>
