zhanghua
2025-10-29 2bbd8d78ad6c901c6e42ddd58ea1f04879ab63da
src/views/attendance/index.vue
@@ -10,7 +10,7 @@
                    end-placeholder="结束日期"
                    value-format="yyyy-MM-dd"
                    style="margin-right: 10px"
                    @change="dateChange"
                    @change="dateChange" :picker-options="pickerOptions"
                >
                </el-date-picker>
            </div>
@@ -33,7 +33,7 @@
                <el-table-column label="出勤情况" prop="state" width="180">
                </el-table-column>
                <el-table-column
                    label="课包/会员卡"
                    label="课包"
                    min-width="200"
                    prop="voucherName"
                >
@@ -93,6 +93,7 @@
            data: {
                staffId: JSON.parse(localStorage.getItem("selectStaff")).id,
                keyword: "",
                reportType: "",
                pageIn: {
                    //可选,如果是分页查询,需要加上。
                    index: 0, //必选
@@ -104,6 +105,33 @@
                },
            },
            dialogVisible: false,
            pickerOptions: {
                shortcuts: [{
                    text: '最近一周',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();
                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                        picker.$emit('pick', [start, end]);
                    }
                }, {
                    text: '最近一个月',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();
                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                        picker.$emit('pick', [start, end]);
                    }
                }, {
                    text: '最近三个月',
                    onClick(picker) {
                        const end = new Date();
                        const start = new Date();
                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                        picker.$emit('pick', [start, end]);
                    }
                }]
            },
        };
    },
    created() {
@@ -174,8 +202,8 @@
            if (this.activeName == "pendingFees") {
                this.listLoading = true;
                getRenew(this.data).then((response) => {
                    this.list = response.data.findPlayerRenew.ls;
                    this.total = response.data.findPlayerRenew.pageOut.total;
                    this.list = response.data.findRenewPlayerAcc.ls;
                    this.total = response.data.findRenewPlayerAcc.pageOut.total;
                    this.listLoading = false;
                });
            } else if (this.activeName == "expired") {