<!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: 8em;}
		</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">
						<sa-info type="num" name="主键" :value="m.id" br></sa-info>
						<sa-info name="预申报编号" br>{{m.platSeqNo}}</sa-info>
						<sa-info name="边民备案号" br>{{m.borderPutrecNo}}</sa-info>
						<sa-info name="身份证号" br>{{m.idno}}</sa-info>
						<sa-info name="订单ID" br>{{m.orderId}}</sa-info>
						<sa-info type="num" name="商品ID" :value="m.goodsId" br></sa-info>
						<sa-info name="商品编号" br>{{m.goodsCode}}</sa-info>
						<sa-info name="商品名称" br>{{m.goodsName}}</sa-info>
						<sa-info name="商品图片" br>{{m.avatar}}</sa-info>
						<sa-info name="购买金额" br>{{m.buyAmount}}</sa-info>
						<sa-info name="净重" br>{{m.netWt}}</sa-info>
						<sa-info name="毛重" br>{{m.grossWt}}</sa-info>
						<sa-info name="购买数量" br>{{m.buyQty}}</sa-info>
						<sa-info name="第一数量" br>{{m.buyQty1}}</sa-info>
						<sa-info name="第二数量" br>{{m.buyQty2}}</sa-info>
						<sa-info name="计价单位，如元、万等" br>{{m.buyUnit}}</sa-info>
						<sa-info name="数量单位，如kg、吨等" br>{{m.numUnit}}</sa-info>
						<sa-info name="创建人编号" br>{{m.createBy}}</sa-info>
						<sa-info name="创建人名称" br>{{m.createName}}</sa-info>
						<sa-info name="创建时间" br>{{m.createTime}}</sa-info>
						<sa-info name="更新人编号" br>{{m.updateBy}}</sa-info>
						<sa-info name="更新人名称" br>{{m.updateName}}</sa-info>
						<sa-info name="更新时间" br>{{m.updateTime}}</sa-info>
						<sa-info type="enum" name="删除状态" :value="m.deleteStatus" :jv="{0: '禁用', 1: '启用'}" br></sa-info>
					</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('/TbOrderGoods/getById?id=' + this.id, function(res) {
						this.m = res.data;
						if(res.data == null) {
							sa.alert('未能查找到 id=' + this.id + " 详细数据");
						}
					}.bind(this))
				}
			})
			
		</script>
	</body>
</html>
