From 6ebeddfe87542e4b3abfbe1adeb9187204f63ba8 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 07 七月 2026 13:47:24 +0800
Subject: [PATCH] 新增功能
---
admin/src/views/combo/record.vue | 49 +++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 43 insertions(+), 6 deletions(-)
diff --git a/admin/src/views/combo/record.vue b/admin/src/views/combo/record.vue
index 4333ac9..4668e64 100644
--- a/admin/src/views/combo/record.vue
+++ b/admin/src/views/combo/record.vue
@@ -6,7 +6,7 @@
<div class="table_btns">
<el-button plain type="primary" @click="handleEx">瀵煎嚭</el-button>
<el-button plain type="danger" @click="openModal('zuofei')">浣滃簾</el-button>
- <el-button plain @click="openModal('tiaozheng')">濂楅璋冩暣</el-button>
+ <el-button plain type="primary" @click="openModal('tiaozheng')">濂楅璋冩暣</el-button>
</div>
<el-table v-loading="loading" :data="list" stripe border @selection-change="handleSelectionChange">
<el-table-column fixed="left" align="center" type="selection" :selectable="handleDisable" width="55" />
@@ -27,11 +27,18 @@
<el-table-column align="center" label="鐢ㄦ埛淇℃伅" min-width="100" prop="openid" show-overflow-tooltip />
<el-table-column align="center" label="浣跨敤娆℃暟" min-width="80" prop="useTimes">
</el-table-column>
+ <el-table-column align="center" label="璁㈠崟鏉ユ簮" min-width="80" show-overflow-tooltip>
+ <template v-slot="{ row }">
+ <span v-if="row.channel == 0">灏忕▼搴忕</span>
+ <span v-if="row.channel == 1">鎶栭煶鍥㈣喘</span>
+ </template>
+ </el-table-column>
<el-table-column align="center" label="鏈夋晥鏃ユ湡" min-width="200" prop="remainCount">
<template v-slot="scope">
<span>{{ scope.row.useStartDate }}鑷硔{ scope.row.useEndDate }}</span>
</template>
</el-table-column>
+ <el-table-column align="center" label="鍒涘缓鏃堕棿" min-width="150" prop="createDate" show-overflow-tooltip />
<el-table-column align="center" label="濂楅鐘舵��" min-width="80">
<template v-slot="scope">
<span v-if="scope.row.status == '0'" class="text_success">姝e父</span>
@@ -144,8 +151,27 @@
clearable: true,
options: [
{ value: '0', label: '姝e父' },
- { value: '1', label: '浣滃簾' },
- // { value: '2', label: '寰呮敮浠�' }
+ { value: '1', label: '浣滃簾' }
+ ]
+ },
+ {
+ filed: 'channel',
+ type: 'select',
+ label: '璁㈠崟鏉ユ簮',
+ options: [
+ { label: '灏忕▼搴忕', value: 0 },
+ { label: '鎶栭煶鍥㈣喘', value: 1 },
+ ]
+ },
+ {
+ filed: 'createDate',
+ type: 'daterange',
+ label: '鍒涘缓鏃ユ湡',
+ placeholder: '璇烽�夋嫨鐘舵��',
+ clearable: true,
+ options: [
+ { value: '0', label: '姝e父' },
+ { value: '1', label: '浣滃簾' }
]
}],
online: true
@@ -171,7 +197,6 @@
remarkCan: '',
// 猬囷笍adjust璋冩暣鐩稿叧
isShowAdjust: false,
- isShowCan: false,
canList: [],
adjustData: {
flag: 0,
@@ -200,13 +225,19 @@
},
handleEx() {
const { pagination, filters } = this
+ let form = JSON.parse(JSON.stringify(filters))
+ if (form.createDate && form.createDate.length > 0) {
+ form.startCreateDate = form.createDate[0] + ' 00:00:00'
+ form.endCreateDate = form.createDate[1] + ' 23:59:59'
+ delete form.createDate
+ }
this.$dialog.exportConfirm('纭瀵煎嚭鍚楋紵')
.then(() => {
this.loading = true
comboSaleEx({
page: 1,
capacity: 1000000,
- model: filters
+ model: form
})
.then(response => {
this.download(response)
@@ -233,9 +264,15 @@
const { pagination, filters } = this
this.loading = true
if (page) { pagination.page = page }
+ let form = JSON.parse(JSON.stringify(filters))
+ if (form.createDate && form.createDate.length > 0) {
+ form.startCreateDate = form.createDate[0] + ' 00:00:00'
+ form.endCreateDate = form.createDate[1] + ' 23:59:59'
+ delete form.createDate
+ }
comboSalePage({
model: {
- ...filters
+ ...form
},
capacity: pagination.pageSize,
page: pagination.page,
--
Gitblit v1.9.3