<!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 name="" br>{{m.tradeAreaId}}</sa-info>
						<sa-info name="" br>{{m.tradeAreaName}}</sa-info>
						<sa-info name="" br>{{m.addressIds}}</sa-info>
						<sa-info name="" br>{{m.saleMainId}}</sa-info> -->
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="订单号" br>{{m.tradeNo}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="买家" br>{{m.buyUserName}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info type="num" name="购买用户类型" :value="m.buyUserType" br></sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="商家名称" br>{{m.enterpriseName}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="总重量" br>{{m.totalWeight}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="总金额" br>{{m.totalPrice}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info type="datetime" name="交易时间" :value="m.tradeTime" br></sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info type="enum" name="交易状态" :value="m.tradeStatus" :jv="{0: '未支付', 1: '已支付'}" br></sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="支付方式" br>{{m.payType}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="结算时间" br>{{m.settleTime}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="当前结算金额" br>{{m.realPrice}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="应结金额" br>{{m.shouldPrice}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="对账人" br>{{m.settleUserId}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="对账人员" br>{{m.recordUserId}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="对账时间" br>{{m.recordTime}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="是否对账" br>{{m.record}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="退款原因" br>{{m.refundReason}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="退款时间" br>{{m.refundTime}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="出互市区时间" br>{{m.outTime}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="商品名称" br>{{m.goodsNames}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="是否申报" br>{{m.apply}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="申报时间" br>{{m.applyTime}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="申报结果" br>{{m.applyResult}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info type="enum" name="分配方式" :value="m.distribution" :jv="{0: '均分', 1: '自选数量'}" br></sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info type="enum" name="是否确认" :value="m.confirm" :jv="{0: '否', 1: '是'}" br></sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="是否接单" br>{{m.pick}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="接单时间" br>{{m.pickTime}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="店铺名称" br>{{m.shopName}}</sa-info>
							</el-col>
						</el-row>
						<el-row :gutter="50">
							<el-col :span="12">
								<sa-info name="是否发货" br>{{m.send}}</sa-info>
							</el-col>
							<el-col :span="12">
								<sa-info name="发货时间" br>{{m.sendTime}}</sa-info>
							</el-col>
						</el-row>
						<!-- <sa-info name="" br>{{m.receiveName}}</sa-info>
						<sa-info name="" br>{{m.receivePhone}}</sa-info>
						<sa-info name="" br>{{m.receiveAddress}}</sa-info> -->
						<!-- <sa-info name="" br>{{m.applyFailReason}}</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('/level-one-server/TbOrder/getById?id=' + this.id, function(res) {
						this.m = res.data;
						if(res.data == null) {
							sa.alert('未能查找到 id=' + this.id + " 详细数据");
						}
					}.bind(this))
				}
			})
			
		</script>
	</body>
</html>
