<!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="../../static/kj/element-ui/theme-chalk/index.css">
		<link rel="stylesheet" href="../../static/sa.css">
		<script src="../../static/kj/vue.min.js"></script>
		<script src="../../static/kj/element-ui/index.js"></script>
		<script src="../../static/kj/httpVueLoader.js"></script>
		<script src="../../static/kj/jquery.min.js"></script>
		<script src="../../static/kj/layer/layer.js"></script>
		<script src="../../static/sa.js"></script>
		<style type="text/css">
			.c-panel .c-label{width: 18em;}
			table {
			  font-family: arial, sans-serif;
			  border-collapse: collapse;
			  width: 90%;
			  margin-top: 20px ;
			  margin-left: auto;
			  margin-right: auto;
			}
			th {
			  border: 1px solid darkgray;
			  text-align: left;
			  height: 24px;
			  padding: 8px;
			  background-color: #dddddd;
			}
			td {
			  border: 1px solid darkgray;
			  text-align: left;
			  padding: 8px;
			}
		</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">
						<table>
							<tr>
								<th>预申报编号</th>
								<td>{{m.platSeqNo}}</td>
								<th>申报单编号</th>
								<td>{{m.declareId}}</td>
							</tr>
							<tr>
								<th>申报人类型</th>
								<td>
									<b v-if="m.declareType == 1">边民</b>
									<b v-if="m.declareType == 2">商铺业主或其代理人</b>
									<b v-if="m.declareType == 3">合作社代表</b>
									<b v-if="m.declareType == 4">互助组代表</b>
								</td>
								<th>申报人姓名</th>
								<td>{{m.declareName}}</td>
							</tr>
							<tr>
								<th>申报时间</th>
								<td>{{sa.forDate(m.declTime, 2)}}</td>
								<th>身份证号码</th>
								<td>{{m.idno}}</td>
							</tr>
							<tr>
								<th>商铺编码</th>
								<td>{{m.shopNo}}</td>
								<th>商铺名称</th>
								<td>{{m.shopName}}</td>
							</tr>
							<tr>
								<th>商品名称</th>
								<td>{{m.goodsNames}}</td>
								<th>总金额</th>
								<td>{{m.sumAmt}}</td>
							</tr>
							<tr>
								<th>总毛重</th>
								<td>{{m.sumGrossWt}}</td>
								<th>总净重</th>
								<td>{{m.sumNetWt}}</td>
							</tr>
							<tr>
								<th>运输方式</th>
								<td>{{m.trafMode}}</td>
								<th>币制</th>
								<td>{{m.currCode}}</td>
							</tr>
							<tr>
								<th>件数</th>
								<td>{{m.packNo}}</td>
								<th>合作社社会统一信用代码</th>
								<td>{{m.orgScc}}</td>
							</tr>
							<tr>
								<th>互助组/合作社备案编号</th>
								<td>{{m.orgPutrecNo}}</td>
								<th>互助组/合租社名称</th>
								<td>{{m.orgName}}</td>
							</tr>
							<tr>
								<th>车牌号</th>
								<td>{{m.veNo}}</td>
								<th>业务模式</th>
								<td>
									<b v-if="m.btrnbBizModecd == 1">区内交易</b>
									<b v-if="m.btrnbBizModecd == 2">落地加工</b>
									<b v-if="m.btrnbBizModecd == 3">原装提离</b>
									<b v-if="m.btrnbBizModecd == 4">直接出口</b>
									<b v-if="m.btrnbBizModecd == 5">出口销售</b>
								</td>
							</tr>
							<tr>
								<th>商品流向</th>
								<td>
									<b v-if="m.gFlow == 1">二次销售</b>
									<b v-if="m.gFlow == 2">生活自用</b>
									<b v-if="m.gFlow == 3">落地加工</b>
								</td>
								<th>进出口标志</th>
								<td>
									<b v-if="m.iEFlag === 'I'">进口</b>
									<b v-if="m.iEFlag === 'E'">出口</b>
								</td>
							</tr>
							<tr>
								<th>互市区编号</th>
								<td>{{m.fieldCode}}</td>
								<th>互市区</th>
								<td>{{m.fieldName}}</td>
							</tr>
							<tr>
								<th>提运单号</th>
								<td>{{m.billNo}}</td>
								<th>航次号</th>
								<td>{{m.voyageNo}}</td>
							</tr>
							<tr>
								<th>单证代码</th>
								<td>{{m.preNo}}</td>
								<th>创建时间</th>
								<td>{{sa.forDate(m.createTime, 2)}}</td>
							</tr>
						</table>
					</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('/level-one-server/HtTradeSettlement/getById?id=' + this.id, function(res) {
						this.m = res.data;
						if(res.data == null) {
							sa.alert('未能查找到 id=' + this.id + " 详细数据");
						}
					}.bind(this))
				}
			})
			
		</script>
	</body>
</html>
