|
|
@@ -0,0 +1,76 @@
|
|
|
+<template>
|
|
|
+ <el-dialog
|
|
|
+ title="列表"
|
|
|
+ :visible.sync="centerDialogVisible"
|
|
|
+ width="60%"
|
|
|
+ append-to-body
|
|
|
+ center>
|
|
|
+
|
|
|
+ <el-table :data="orderData" border style="width: 100%; font-size: 14px;">
|
|
|
+ <el-table-column prop="customerName" label="客户名称"/>
|
|
|
+ <el-table-column prop="orderNo" label="订单编号">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="numberRows" label="行数"/>
|
|
|
+ <el-table-column prop="goodsTotalNum" label="数量">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ formatDecimal(scope.row.goodsTotalNum) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="totalMoney" label="总金额(元)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ ¥{{ formatDecimal(scope.row.totalMoney) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="redPacketAmount" label="红包金额(元)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ ¥{{ formatDecimal(scope.row.redPacketAmount) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column prop="businessDate" label="业务日期">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.businessDate }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+<!-- <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="centerDialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="centerDialogVisible = false">确 定</el-button>
|
|
|
+ </span>-->
|
|
|
+ </el-dialog>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { getCouponReportOrderList } from "@/api/redPacket/index";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "CouponStatistics",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ centerDialogVisible: false,
|
|
|
+ orderData: []
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ formatDecimal(value) {
|
|
|
+ if (value == null || value === '') return '0.00'
|
|
|
+ return parseFloat(value).toFixed(2)
|
|
|
+ },
|
|
|
+ getOrderDataList(customerId,checkType){
|
|
|
+ getCouponReportOrderList({customerId: customerId, checkType: checkType}).then(res => {
|
|
|
+ console.info('res---', res);
|
|
|
+ this.orderData = res.data.data;
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+
|
|
|
+</style>
|