From 1fd358c8006063ad2a084260fcd867e730b70fca Mon Sep 17 00:00:00 2001 From: Dragon <13925835632@139.com> Date: Tue, 26 Mar 2024 18:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B9=B8=E8=BF=90=E7=A4=BC?= =?UTF-8?q?=E7=89=A9=E5=8C=BA=E9=97=B4=E5=92=8C=E6=94=B6=E7=A4=BC=E4=BA=BA?= =?UTF-8?q?id=E6=9D=A1=E4=BB=B6=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lucky/LuckyGiftDetail.vue | 74 +++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 5 deletions(-) diff --git a/src/views/lucky/LuckyGiftDetail.vue b/src/views/lucky/LuckyGiftDetail.vue index 22c0648..290b19d 100644 --- a/src/views/lucky/LuckyGiftDetail.vue +++ b/src/views/lucky/LuckyGiftDetail.vue @@ -3,7 +3,7 @@
选择礼物 - +
+
+ 选择礼物个数区间 + + + + +
送礼用户ID
+
+ 收礼用户ID + +
@@ -109,6 +135,8 @@ import { getAll, getRewardList, luckyGiftRewardRecordExport, + luckyGiftRewardList, + luckyGiftRangeConfigList, } from "@/api/lucky/luckyGiftRangeConfig"; import { dateFormat } from "@/utils/system-helper"; import { ElMessage } from "element-plus"; @@ -120,9 +148,12 @@ export default { // 查询条件 inquire: { gifts: [], + giftsNum: [], giftId: "", senUserId: "", + receiveErBanNo: "", time: "", + value2: "", }, // 表格 tableData: [], @@ -133,6 +164,7 @@ export default { // 内表格 detailsDialog: false, tableDataIn: [], + disabledBool: true, }; }, created() { @@ -146,6 +178,23 @@ export default { this.getData(); }, methods: { + // 外部监听 + selectGift(e) { + console.log(e); + if (e) { + this.disabledBool = false; + } else { + this.disabledBool = true; + } + this.inquire.giftId = e; + luckyGiftRangeConfigList({ giftId: this.inquire.giftId }).then((res) => { + this.inquire.giftsNum = res.data; + }); + }, + // 外部监听2 + selectGift2(e) { + this.inquire.value2 = e; + }, // 查询 getData() { this.loading = true; @@ -160,6 +209,8 @@ export default { pageSize: this.pageSize, giftId: this.inquire.giftId, sendErBanNo: this.inquire.senUserId, + receiveErBanNo: this.inquire.receiveErBanNo, + rangeId: this.inquire.value2, startTime: startTime, endTime: endTime, }).then((res) => { @@ -187,15 +238,27 @@ export default { if (this.inquire.giftId == null || this.inquire.giftId == "null") { obj = { sendErBanNo: this.inquire.senUserId, - startTime: dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"), - endTime: dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"), + startTime: this.inquire.time[0] + ? dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss") + : "", + endTime: this.inquire.time[0] + ? dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss") + : "", + receiveErBanNo: this.inquire.receiveErBanNo, + rangeId: this.inquire.value2, }; } else { obj = { giftId: this.inquire.giftId, sendErBanNo: this.inquire.senUserId, - startTime: dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss"), - endTime: dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss"), + startTime: this.inquire.time[0] + ? dateFormat(this.inquire.time[0], "yyyy-MM-dd hh:mm:ss") + : "", + endTime: this.inquire.time[0] + ? dateFormat(this.inquire.time[1], "yyyy-MM-dd hh:mm:ss") + : "", + receiveErBanNo: this.inquire.receiveErBanNo, + rangeId: this.inquire.value2, }; } @@ -223,6 +286,7 @@ export default { display: flex; justify-content: space-between; white-space: nowrap; + margin-bottom: 20px; } .search { width: 100%;