|
@@ -1,13 +1,161 @@
|
|
|
<template>
|
|
|
- <div>订单</div>
|
|
|
+ <div class="detail-container">
|
|
|
+ <el-card shadow="never" style="margin-top: 10px">
|
|
|
+ <div class="operate-container">
|
|
|
+ <i class="el-icon-warning color-danger" style="margin-left: 20px"></i>
|
|
|
+ <span class="color-danger">当前订单状态:</span>
|
|
|
+ <div class="operate-button-container">
|
|
|
+ <el-button size="mini" @click="$router.go(-1)">返回</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="showMarkOrderDialog">退款</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <span class="font-small">基本信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="table-layout">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="5" class="table-cell-title">订单ID</el-col>
|
|
|
+ <el-col :span="4" class="table-cell-title">桌号</el-col>
|
|
|
+ <el-col :span="5" class="table-cell-title">下单用户</el-col>
|
|
|
+ <el-col :span="5" class="table-cell-title">下单手机号</el-col>
|
|
|
+ <el-col :span="5" class="table-cell-title">下单时间</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="5" class="table-cell"></el-col>
|
|
|
+ <el-col :span="4" class="table-cell"></el-col>
|
|
|
+ <el-col :span="5" class="table-cell"></el-col>
|
|
|
+ <el-col :span="5" class="table-cell"></el-col>
|
|
|
+ <el-col :span="5" class="table-cell"></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 20px">
|
|
|
+ <span class="font-small">商品信息</span>
|
|
|
+ </div>
|
|
|
+ <el-table
|
|
|
+ ref="orderItemTable"
|
|
|
+ :data="order.orderItemList"
|
|
|
+ style="width: 100%;margin-top: 20px" border>
|
|
|
+ <el-table-column label="商品图片" width="120" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <img :src="scope.row.productPic"
|
|
|
+ alt=""
|
|
|
+ style="height: 80px">
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="商品名称" align="center"></el-table-column>
|
|
|
+ <el-table-column label="商品规格" width="120" align="center"></el-table-column>
|
|
|
+ <el-table-column label="规格" width="120" align="center"></el-table-column>
|
|
|
+ <el-table-column label="数量" width="120" align="center"></el-table-column>
|
|
|
+ <el-table-column label="价格" width="120" align="center"></el-table-column>
|
|
|
+ <el-table-column label="小计" width="120" align="center"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="float: right;margin: 20px">
|
|
|
+ 合计:<span class="color-danger">¥{{order.totalAmount}}</span>
|
|
|
+ </div>
|
|
|
+ <div style="margin-top: 60px">
|
|
|
+ <span class="font-small">费用信息</span>
|
|
|
+ </div>
|
|
|
+ <div class="table-layout">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" class="table-cell-title">优惠券</el-col>
|
|
|
+ <el-col :span="8" class="table-cell-title">积分抵扣</el-col>
|
|
|
+ <el-col :span="8" class="table-cell-title">活动优惠</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" class="table-cell-title">折扣金额</el-col>
|
|
|
+ <el-col :span="8" class="table-cell-title">订单总金额</el-col>
|
|
|
+ <el-col :span="8" class="table-cell-title">应付款金额</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ <el-col :span="8" class="table-cell"></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ <el-dialog title="退款"
|
|
|
+ :visible.sync="markOrderDialogVisible"
|
|
|
+ width="40%">
|
|
|
+ <el-form :model="markInfo"
|
|
|
+ label-width="150px">
|
|
|
+ <el-form-item label="备注:">
|
|
|
+ <el-input v-model="markInfo.note" type="textarea" rows="3">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="markOrderDialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="handleMarkOrder">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'index'
|
|
|
+ name: 'orderDetail',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ id: null,
|
|
|
+ order: {},
|
|
|
+ markOrderDialogVisible: false,
|
|
|
+ markInfo: { note: null }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleMarkOrder () {},
|
|
|
+ showMarkOrderDialog () {}
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
+<style scoped>
|
|
|
+.detail-container {
|
|
|
+ width: 80%;
|
|
|
+ padding: 20px 20px 20px 20px;
|
|
|
+ margin: 20px auto;
|
|
|
+}
|
|
|
+
|
|
|
+.operate-container {
|
|
|
+ background: #F2F6FC;
|
|
|
+ height: 80px;
|
|
|
+ margin: -20px -20px 0;
|
|
|
+ line-height: 80px;
|
|
|
+}
|
|
|
+
|
|
|
+.operate-button-container {
|
|
|
+ float: right;
|
|
|
+ margin-right: 20px
|
|
|
+}
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
+.table-layout {
|
|
|
+ margin-top: 20px;
|
|
|
+ border-left: 1px solid #DCDFE6;
|
|
|
+ border-top: 1px solid #DCDFE6;
|
|
|
+}
|
|
|
|
|
|
+.table-cell {
|
|
|
+ height: 60px;
|
|
|
+ line-height: 40px;
|
|
|
+ border-right: 1px solid #DCDFE6;
|
|
|
+ border-bottom: 1px solid #DCDFE6;
|
|
|
+ padding: 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #606266;
|
|
|
+ text-align: center;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.table-cell-title {
|
|
|
+ border-right: 1px solid #DCDFE6;
|
|
|
+ border-bottom: 1px solid #DCDFE6;
|
|
|
+ padding: 10px;
|
|
|
+ background: #F2F6FC;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #303133;
|
|
|
+}
|
|
|
</style>
|