From ac72656e8172d93c97898b27ac1bed0d057a604e Mon Sep 17 00:00:00 2001 From: zhangyongQINGHU <15371817+zhangyongqinghu@user.noreply.gitee.com> Date: Sat, 22 Nov 2025 11:00:48 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E7=B2=BE=E7=BD=91=E5=8F=B7=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moneyManage/receiveDetail/receiveFinance.vue | 39 +- .../moneyManage/receiveDetail/receiveHead.vue | 37 +- .../moneyManage/receiveDetail/receiveManage.vue | 2821 ++++++++++---------- .../moneyManage/receiveDetail/receiveService.vue | 8 +- .../moneyManage/refundDetail/refundCharge.vue | 21 +- .../moneyManage/refundDetail/refundFinance.vue | 30 +- .../moneyManage/refundDetail/refundHeader.vue | 23 +- .../moneyManage/refundDetail/refundService.vue | 15 +- 8 files changed, 1518 insertions(+), 1476 deletions(-) diff --git a/src/views/moneyManage/receiveDetail/receiveFinance.vue b/src/views/moneyManage/receiveDetail/receiveFinance.vue index 59706cc..e21b9f9 100644 --- a/src/views/moneyManage/receiveDetail/receiveFinance.vue +++ b/src/views/moneyManage/receiveDetail/receiveFinance.vue @@ -762,10 +762,10 @@ const exportExcel = async function () { payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); } - if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { - ElMessage.error('精网号只能是数字') - return - } + // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { + // ElMessage.error('精网号只能是数字') + // return + // } const cashRoleId = '1'; const submitterMarket = adminData.value.markets; @@ -882,10 +882,10 @@ const getlist = async () => { payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); } - if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { - ElMessage.error('精网号只能是数字') - return - } + // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { + // ElMessage.error('精网号只能是数字') + // return + // } // 地区财务固定参数:角色ID=1,按标签页筛选状态 const cashRoleId = '1'; @@ -997,7 +997,6 @@ const submitRefund = async () => { // 2.2 搜索与重置 const search = () => { getlist(); - ElMessage.success('查询成功'); }; const reset = () => { @@ -1239,17 +1238,17 @@ const getAdminData = async () => { adminData.value = result; // 超级管理员判断(仅用于角色切换权限) - if (adminData.value.roleId === 2) { - superAdmin.value = true; - // 管理员所属地区提示 - if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { - ElMessageBox.alert( - '管理员账号仅显示所属地区的财务数据,请确认地区设置', - '温馨提示', - { type: 'warning' } - ); - } - } + // if (adminData.value.roleId === 2) { + // superAdmin.value = true; + // // 管理员所属地区提示 + // if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { + // ElMessageBox.alert( + // '管理员账号仅显示所属地区的财务数据,请确认地区设置', + // '温馨提示', + // { type: 'warning' } + // ); + // } + // } } catch (error) { console.error('管理员信息获取失败:', error); ElMessage.error('管理员信息加载异常'); diff --git a/src/views/moneyManage/receiveDetail/receiveHead.vue b/src/views/moneyManage/receiveDetail/receiveHead.vue index 0320d88..4224f4c 100644 --- a/src/views/moneyManage/receiveDetail/receiveHead.vue +++ b/src/views/moneyManage/receiveDetail/receiveHead.vue @@ -617,10 +617,10 @@ const exportExcel = async function () { payCurrencySelect = CurrencyForId(searchData.value.paymentCurrency); } - if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { - ElMessage.error('精网号只能是数字') - return - } + // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { + // ElMessage.error('精网号只能是数字') + // return + // } const cashRoleId = '2'; const submitterMarket = adminData.value.markets; @@ -785,10 +785,10 @@ const getlist = async () => { } } - if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { - ElMessage.error('精网号只能是数字') - return - } + // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { + // ElMessage.error('精网号只能是数字') + // return + // } const result = await request({ url: '/cashCollection/selectCollection', @@ -878,7 +878,6 @@ const submitRefund = async () => { // 2.2 搜索与重置 const search = () => { getlist(); - ElMessage.success('查询成功'); }; const reset = () => { @@ -1044,16 +1043,16 @@ const getAdminData = async () => { adminData.value = result; // 超级管理员判断(仅用于角色切换权限) - if (adminData.value.roleId === 2) { - // 管理员所属地区提示 - if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { - ElMessageBox.alert( - '管理员账号仅显示所属地区的财务数据,请确认地区设置', - '温馨提示', - { type: 'warning' } - ); - } - } + // if (adminData.value.roleId === 2) { + // // 管理员所属地区提示 + // if (adminData.value.markets === '总部' || adminData.value.markets === '研发部') { + // ElMessageBox.alert( + // '管理员账号仅显示所属地区的财务数据,请确认地区设置', + // '温馨提示', + // { type: 'warning' } + // ); + // } + // } } catch (error) { console.error('管理员信息获取失败:', error); ElMessage.error('管理员信息加载异常'); diff --git a/src/views/moneyManage/receiveDetail/receiveManage.vue b/src/views/moneyManage/receiveDetail/receiveManage.vue index b5c2ed0..917d63b 100644 --- a/src/views/moneyManage/receiveDetail/receiveManage.vue +++ b/src/views/moneyManage/receiveDetail/receiveManage.vue @@ -1,367 +1,367 @@ \ No newline at end of file diff --git a/src/views/moneyManage/receiveDetail/receiveService.vue b/src/views/moneyManage/receiveDetail/receiveService.vue index 46b3bf2..7ce9682 100644 --- a/src/views/moneyManage/receiveDetail/receiveService.vue +++ b/src/views/moneyManage/receiveDetail/receiveService.vue @@ -527,10 +527,10 @@ const getlist = async () => { } } - if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { - ElMessage.error('精网号只能是数字') - return - } + // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { + // ElMessage.error('精网号只能是数字') + // return + // } const result = await request({ url: '/cashCollection/selectCollection', diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index aa989b9..3389bd7 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -421,10 +421,17 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; } + } if (searchForm.value.paymentCurrency) { payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) @@ -592,10 +599,10 @@ const exportExcel = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return - } + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } if (searchForm.value.paymentCurrency) { payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) diff --git a/src/views/moneyManage/refundDetail/refundFinance.vue b/src/views/moneyManage/refundDetail/refundFinance.vue index 3d1c377..6fe8560 100644 --- a/src/views/moneyManage/refundDetail/refundFinance.vue +++ b/src/views/moneyManage/refundDetail/refundFinance.vue @@ -479,12 +479,19 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; } + } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { @@ -647,12 +654,19 @@ const exportExcel = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; } + } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index 8623f93..a9e94c9 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -477,12 +477,19 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; } + } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { @@ -624,10 +631,10 @@ const exportExcel = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return - } + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } const params = { pageNum: pagination.value.pageNum, diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index 666538f..dded353 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -287,12 +287,19 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - ElMessage.error('精网号必须为数字') - return + // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { + // ElMessage.error('精网号必须为数字') + // return + // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; } + } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { From a8278fe7dfb3ea5c669da669363870a469d5bd4c Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 23 Nov 2025 14:20:24 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E8=B4=9F=E8=B4=A3=E4=BA=BA=E6=B6=88=E6=81=AF=E4=B8=8D=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 7d2f07a..2d35632 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -143,9 +143,9 @@ const selectStatusById = () => { status.push(0); } // 地区负责人收款待审核 - else if (hasPermission(permissionMapping.area_manager_collection_pending)) { - status.push(0); - } + // else if (hasPermission(permissionMapping.area_manager_collection_pending)) { + // status.push(0); + // } // ===== 退款流程状态 ===== From 47dcfcc9e30d03cac199d1eba74634c3f9ec18a1 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 23 Nov 2025 15:04:05 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E6=89=8B=E7=BB=AD=E8=B4=B9=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/receiveDetail/receiveFinance.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/moneyManage/receiveDetail/receiveFinance.vue b/src/views/moneyManage/receiveDetail/receiveFinance.vue index e21b9f9..76e3427 100644 --- a/src/views/moneyManage/receiveDetail/receiveFinance.vue +++ b/src/views/moneyManage/receiveDetail/receiveFinance.vue @@ -209,7 +209,7 @@ @click="openAuditForm(scope.row)">审核 编辑 Date: Sun, 23 Nov 2025 15:10:34 +0800 Subject: [PATCH 04/12] =?UTF-8?q?finalReview=E5=8A=A0adminId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/refundDetail/refundHeader.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index a9e94c9..6401d72 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -535,7 +535,8 @@ const handlePass = async function () { permanentGold: auditRow.value.permanentGold * 100, freeGold: auditRow.value.freeGold * 100, orderCode: auditRow.value.orderCode, - jwcode: auditRow.value.jwcode + jwcode: auditRow.value.jwcode, + adminId: adminData.value.id } const result = await API({ url: '/Money/finalReview', @@ -564,7 +565,8 @@ const handleReject = async function () { rejectReason: addForm.value.remark, headFinance: adminData.value.adminName, auditId: auditRow.value.auditId, - orderCode: auditRow.value.orderCode + orderCode: auditRow.value.orderCode, + adminId: adminData.value.id } const result = await API({ url: '/Money/finalReview', From 49a8b80a3767684cf210fab40b5d20d6365029a5 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 23 Nov 2025 15:11:57 +0800 Subject: [PATCH 05/12] 1 --- .../moneyManage/receiveDetail/receiveManage.vue | 2814 ++++++++++---------- 1 file changed, 1404 insertions(+), 1410 deletions(-) diff --git a/src/views/moneyManage/receiveDetail/receiveManage.vue b/src/views/moneyManage/receiveDetail/receiveManage.vue index 917d63b..76e3427 100644 --- a/src/views/moneyManage/receiveDetail/receiveManage.vue +++ b/src/views/moneyManage/receiveDetail/receiveManage.vue @@ -1,367 +1,367 @@ \ No newline at end of file From 3f355bdd4b574e40721836f9e1ef8dd73f53aa71 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 23 Nov 2025 15:16:49 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index 2d35632..3ca66e0 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -142,6 +142,11 @@ const selectStatusById = () => { if (hasPermission(permissionMapping.area_finance_collection_pending)) { status.push(0); } + + //地区客服收款 + if (hasPermission(permissionMapping.collection_area_customer_service)) { + status.push(2); + } // 地区负责人收款待审核 // else if (hasPermission(permissionMapping.area_manager_collection_pending)) { // status.push(0); @@ -154,17 +159,21 @@ const selectStatusById = () => { status.push(10); } // 地区负责人退款审核 - else if (hasPermission(permissionMapping.audit_area_manager_refund)) { + if (hasPermission(permissionMapping.audit_area_manager_refund)) { status.push(20); } // 总部财务退款审核 - else if (hasPermission(permissionMapping.audit_headquarters_refund)) { + if (hasPermission(permissionMapping.audit_headquarters_refund)) { status.push(30); } // 执行人待处理 - else if (hasPermission(permissionMapping.view_execution_details)) { + if (hasPermission(permissionMapping.view_execution_details)) { status.push(40); } + //地区客服退款审核驳回 + if (hasPermission(permissionMapping.refund_area_customer_service)) { + status.push(12,22,32); + } // 去重并返回结果(单一角色下实际不会有重复) return [...new Set(status)]; From fdd0625cc7b39dbfc655dcbb8cd6142977d7385f Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 23 Nov 2025 15:39:20 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E6=94=B6=E6=AC=BEjwcode=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/receiveDetail/receiveFinance.vue | 15 +++++++++++++++ src/views/moneyManage/receiveDetail/receiveHead.vue | 16 +++++++++++++++- src/views/moneyManage/receiveDetail/receiveManage.vue | 5 +++++ src/views/moneyManage/receiveDetail/receiveService.vue | 18 ++++++++++++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) diff --git a/src/views/moneyManage/receiveDetail/receiveFinance.vue b/src/views/moneyManage/receiveDetail/receiveFinance.vue index 76e3427..d69eb51 100644 --- a/src/views/moneyManage/receiveDetail/receiveFinance.vue +++ b/src/views/moneyManage/receiveDetail/receiveFinance.vue @@ -907,6 +907,11 @@ const getlist = async () => { ElMessage.error('请输入正确的精网号') return; } + // 增加精网号长度限制,防止后端400错误 + if (searchData.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } } const result = await request({ url: '/cashCollection/selectCollection', @@ -956,6 +961,16 @@ const submitRefund = async () => { if (!refundFormData.value.refundReason) { return ElMessage.error('请输入退款原因'); } + // 验证精网号格式和长度 + if (refundFormData.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode); + if (!isPositiveInteger) { + return ElMessage.error('请输入正确的精网号'); + } + if (refundFormData.value.jwcode.length > 8) { + return ElMessage.error('精网号长度不能超过8位'); + } + } if (refundFormData.value.refundModel == 0) { refundFormData.value.partRefundGold = refundFormData.value.permanentGold, refundFormData.value.partRefundFree = refundFormData.value.freeGold diff --git a/src/views/moneyManage/receiveDetail/receiveHead.vue b/src/views/moneyManage/receiveDetail/receiveHead.vue index 4224f4c..eee4d63 100644 --- a/src/views/moneyManage/receiveDetail/receiveHead.vue +++ b/src/views/moneyManage/receiveDetail/receiveHead.vue @@ -783,6 +783,11 @@ const getlist = async () => { ElMessage.error('请输入正确的精网号') return; } + // 添加长度验证,超过8位提示错误 + if (searchData.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } } // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { @@ -829,7 +834,6 @@ const resetRefund = () => { const submitRefund = async () => { try { if (refundFormData.value.goodsName != '金币充值') { - return ElMessage.error('线上数据仅支持金币充值退款'); } if (!refundFormData.value.refundModel) { @@ -838,6 +842,16 @@ const submitRefund = async () => { if (!refundFormData.value.refundReason) { return ElMessage.error('请输入退款原因'); } + // 添加精网号验证 + if (refundFormData.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode); + if (!isPositiveInteger) { + return ElMessage.error('精网号格式不正确,必须为正整数'); + } + if (refundFormData.value.jwcode.length > 20) { + return ElMessage.error('精网号长度不能超过20位'); + } + } if (refundFormData.value.refundModel == 0) { refundFormData.value.partRefundGold = refundFormData.value.permanentGold, refundFormData.value.partRefundFree = refundFormData.value.freeGold diff --git a/src/views/moneyManage/receiveDetail/receiveManage.vue b/src/views/moneyManage/receiveDetail/receiveManage.vue index 76e3427..159d089 100644 --- a/src/views/moneyManage/receiveDetail/receiveManage.vue +++ b/src/views/moneyManage/receiveDetail/receiveManage.vue @@ -907,6 +907,11 @@ const getlist = async () => { ElMessage.error('请输入正确的精网号') return; } + // 添加长度验证,超过8位提示错误 + if (searchData.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } } const result = await request({ url: '/cashCollection/selectCollection', diff --git a/src/views/moneyManage/receiveDetail/receiveService.vue b/src/views/moneyManage/receiveDetail/receiveService.vue index 7ce9682..46fec5f 100644 --- a/src/views/moneyManage/receiveDetail/receiveService.vue +++ b/src/views/moneyManage/receiveDetail/receiveService.vue @@ -525,6 +525,11 @@ const getlist = async () => { ElMessage.error('请输入正确的精网号') return; } + // 添加精网号长度验证 + if (searchData.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } } // if (searchData.value.jwcode && !isNumber(searchData.value.jwcode)) { @@ -984,6 +989,19 @@ const submitRefund = async () => { return } } + + // 添加精网号验证 + if (refundFormData.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(refundFormData.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + if (refundFormData.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } + } const result = await request({ url: '/Money/add', data: { From 8d944a595cea068cb4fc03804a6d91c9ae24d879 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Sun, 23 Nov 2025 17:29:03 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E7=B2=BE=E7=BD=91=E5=8F=B7=E6=9C=80?= =?UTF-8?q?=E9=95=BF8=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/executor/executor.vue | 48 +++++++++++-------- .../moneyManage/refundDetail/refundCharge.vue | 37 +++++++++------ .../moneyManage/refundDetail/refundFinance.vue | 53 +++++++++++---------- .../moneyManage/refundDetail/refundHeader.vue | 42 ++++++++++------- .../moneyManage/refundDetail/refundService.vue | 54 +++++++++++----------- 5 files changed, 134 insertions(+), 100 deletions(-) diff --git a/src/views/moneyManage/executor/executor.vue b/src/views/moneyManage/executor/executor.vue index 242a742..f7ff3ec 100644 --- a/src/views/moneyManage/executor/executor.vue +++ b/src/views/moneyManage/executor/executor.vue @@ -41,8 +41,8 @@
退款时间 + end-placeholder="结束时间" style="width:18vw;" clearable :disabled-date="disabledDate" + :default-time="defaultTime" />
查询 @@ -54,10 +54,10 @@ - - + + @@ -123,11 +123,12 @@ - +
@@ -175,7 +176,8 @@
转账凭证 - +
无转账凭证
@@ -282,12 +284,20 @@ const getRefund = async function () { } const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 - ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' + ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - if(searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)){ - ElMessage.error('精网号必须为数字') - return - } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } const params = { pageNum: pagination.value.pageNum, @@ -295,7 +305,7 @@ const getRefund = async function () { cashRecordDTO: { jwcode: searchForm.value.jwcode, name: searchForm.value.name, - markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [], + markets: searchForm.value.markets && searchForm.value.markets.length > 0 ? [searchForm.value.markets[searchForm.value.markets.length - 1]] : [], goodsName: goodsName, statuses: statusesParam.value,//10:地区财务待审核;12:地区财务驳回; // 20:地区负责人待审核;22:地区负责人驳回; @@ -495,12 +505,12 @@ const reset = function () { getRefund() } const handlePageSizeChange = function (val) { - pagination.value.pageSize = val - getRefund() + pagination.value.pageSize = val + getRefund() } const handleCurrentChange = function (val) { - pagination.value.pageNum = val - getRefund() + pagination.value.pageNum = val + getRefund() } onMounted(() => { console.log('???????????????????', adminData.value) diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index 3389bd7..5a64898 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -421,17 +421,18 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } - if (searchForm.value.jwcode) { - const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); - if (!isPositiveInteger) { - ElMessage.error('请输入正确的精网号') - return; + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; } - } if (searchForm.value.paymentCurrency) { payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) @@ -599,10 +600,18 @@ const exportExcel = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } if (searchForm.value.paymentCurrency) { payCurrencySelect.value = CurrencyForId(searchForm.value.paymentCurrency) diff --git a/src/views/moneyManage/refundDetail/refundFinance.vue b/src/views/moneyManage/refundDetail/refundFinance.vue index 6fe8560..7a4b1de 100644 --- a/src/views/moneyManage/refundDetail/refundFinance.vue +++ b/src/views/moneyManage/refundDetail/refundFinance.vue @@ -103,7 +103,8 @@ style="margin-top: 1vh;"> - +
退款申请信息
@@ -479,19 +480,20 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } - if (searchForm.value.jwcode) { - const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); - if (!isPositiveInteger) { - ElMessage.error('请输入正确的精网号') - return; + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; } - } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { @@ -652,21 +654,22 @@ const exportExcel = async function () { } const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 - ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } - if (searchForm.value.jwcode) { - const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); - if (!isPositiveInteger) { - ElMessage.error('请输入正确的精网号') - return; + ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : ''; + + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; } - } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index 6401d72..fd0d6cb 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -104,7 +104,8 @@ style="margin-top: 1vh;"> - +
退款申请信息
@@ -477,19 +478,20 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } - if (searchForm.value.jwcode) { - const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); - if (!isPositiveInteger) { - ElMessage.error('请输入正确的精网号') - return; + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; } - } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { @@ -633,10 +635,18 @@ const exportExcel = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; + } const params = { pageNum: pagination.value.pageNum, diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index dded353..e763ee4 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -115,7 +115,8 @@ style="margin-top: 1vh;"> - +
@@ -287,25 +288,26 @@ const getRefund = async function () { const goodsName = searchForm.value.goodsName && searchForm.value.goodsName.length > 0 ? searchForm.value.goodsName[searchForm.value.goodsName.length - 1] : '' - // if (searchForm.value.jwcode && !isNumber(searchForm.value.jwcode)) { - // ElMessage.error('精网号必须为数字') - // return - // } - if (searchForm.value.jwcode) { - const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); - if (!isPositiveInteger) { - ElMessage.error('请输入正确的精网号') - return; + if (searchForm.value.jwcode) { + const isPositiveInteger = /^[1-9]\d*$/.test(searchForm.value.jwcode); + if (!isPositiveInteger) { + ElMessage.error('请输入正确的精网号') + return; + } + } + // 增加精网号长度限制,防止后端400错误 + if (searchForm.value.jwcode.length > 8) { + ElMessage.error('精网号长度不能超过8位') + return; } - } - const params = { + const params = { pageNum: pagination.value.pageNum, pageSize: pagination.value.pageSize, cashRecordDTO: { jwcode: searchForm.value.jwcode,//精网号 name: searchForm.value.name,//姓名 - markets: searchForm.value.market && searchForm.value.market.length > 0 ? [searchForm.value.market[searchForm.value.market.length - 1]] : [], + markets: searchForm.value.market && searchForm.value.market.length > 0 ? [searchForm.value.market[searchForm.value.market.length - 1]] : [], goodsName: goodsName,//商品名 statuses: statusParam.value,//10:地区财务待审核;12:地区财务驳回; // 20:地区负责人待审核;22:地区负责人驳回; @@ -375,25 +377,25 @@ const submitEdit = async function () { jwcode: editRow.value.jwcode, paymentAmount: editRow.value.paymentAmount, paymentCurrency: editRow.value.paymentCurrency, - newRefundGold: (editForm.value.partRefundGold*100), - newRefundFree: (editForm.value.partRefundFree)*100 + newRefundGold: (editForm.value.partRefundGold * 100), + newRefundFree: (editForm.value.partRefundFree) * 100 } console.log(editRow.value.goodsName); - + if (editRow.value.goodsName != '金币充值') { params.newRefundGold = '' - params.newRefundFree = '' + params.newRefundFree = '' } - if(editRow.value.goodsName == '金币充值'){ - if(editForm.value.partRefundGold>editRow.value.gold){ - ElMessage.error('退款金币数不能大于原金币数') - return - } - if(editForm.value.partRefundFree>editRow.value.free){ - ElMessage.error('退款免费金币数不能大于原免费金币数') - return - } + if (editRow.value.goodsName == '金币充值') { + if (editForm.value.partRefundGold > editRow.value.gold) { + ElMessage.error('退款金币数不能大于原金币数') + return + } + if (editForm.value.partRefundFree > editRow.value.free) { + ElMessage.error('退款免费金币数不能大于原免费金币数') + return + } } const result = await API({ url: '/Money/update', From 3aef566c83d3aea0f89fcc4980fd743404463a59 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Wed, 26 Nov 2025 09:26:58 +0800 Subject: [PATCH 09/12] bug --- src/views/moneyManage/refundDetail/refundCharge.vue | 4 ++-- .../moneyManage/refundDetail/refundFinance.vue | 4 ++-- src/views/moneyManage/refundDetail/refundHeader.vue | 4 ++-- .../moneyManage/refundDetail/refundService.vue | 21 +++++++++++++++++++++ 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/views/moneyManage/refundDetail/refundCharge.vue b/src/views/moneyManage/refundDetail/refundCharge.vue index 5a64898..865886b 100644 --- a/src/views/moneyManage/refundDetail/refundCharge.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -117,11 +117,11 @@
永久金币 -  个 +  个
免费金币 -  个 +  个
退款理由 diff --git a/src/views/moneyManage/refundDetail/refundFinance.vue b/src/views/moneyManage/refundDetail/refundFinance.vue index 7a4b1de..5a5eb87 100644 --- a/src/views/moneyManage/refundDetail/refundFinance.vue +++ b/src/views/moneyManage/refundDetail/refundFinance.vue @@ -116,11 +116,11 @@
永久金币 -  个 +  个
免费金币 -  个 +  个
退款理由 diff --git a/src/views/moneyManage/refundDetail/refundHeader.vue b/src/views/moneyManage/refundDetail/refundHeader.vue index fd0d6cb..734000e 100644 --- a/src/views/moneyManage/refundDetail/refundHeader.vue +++ b/src/views/moneyManage/refundDetail/refundHeader.vue @@ -117,11 +117,11 @@
永久金币 -  个 +  个
免费金币 -  个 +  个
退款理由 diff --git a/src/views/moneyManage/refundDetail/refundService.vue b/src/views/moneyManage/refundDetail/refundService.vue index e763ee4..bac3cf2 100644 --- a/src/views/moneyManage/refundDetail/refundService.vue +++ b/src/views/moneyManage/refundDetail/refundService.vue @@ -369,6 +369,27 @@ const submitEdit = async function () { } try { console.log(editRow.value) + if(!editForm.value.refundModel) { + ElMessage.error('请选择退款方式') + return + }else if(!editForm.value.refundReason) { + ElMessage.error('请输入退款理由') + return + }else if(editForm.value.refundModel == 1 && (!editForm.value.partRefundGold || !editForm.value.partRefundFree)) { + ElMessage.error('请输入退款金币数和免费金币数') + return + }else if (editForm.value.refundModel == 1 && (editForm.value.partRefundGold || editForm.value.partRefundFree)) { + const isPositiveInteger = /^[1-9]\d*$/.test(editForm.value.partRefundGold) + if (!isPositiveInteger) { + ElMessage.error('请输入正确的永久金币数') + return + } + const isPositiveInteger1 = /^[1-9]\d*$/.test(editForm.value.partRefundFree) + if (!isPositiveInteger1) { + ElMessage.error('请输入正确的免费金币数') + return + } + } let params = { id: editRow.value.id, status: editRow.value.status, From 1f777f76a41dbcd4a98bc7882417ce554b4b9300 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Thu, 27 Nov 2025 11:34:16 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activityManage/activity.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/activityManage/activity.vue b/src/views/activityManage/activity.vue index bc74406..13c5c28 100644 --- a/src/views/activityManage/activity.vue +++ b/src/views/activityManage/activity.vue @@ -193,6 +193,10 @@ const editForm = ref({ }) const marketOptions = ref([]) const getActivity = async function () { + if (!hasMenuPermission(permissionMapping.view_activity)) { + ElMessage.error('无此权限') + return + } const rechargeActivity = { activityName: searchForm.value.activityName, businessBelong: searchForm.value.businessBelong, @@ -219,6 +223,10 @@ const getActivity = async function () { } } const handleAdd = async function () { + if (!hasMenuPermission(permissionMapping.add_activity)) { + ElMessage.error('无此权限') + return + } const activityName = addForm.value.activityName if (!validateActivityName(activityName)) return @@ -274,6 +282,10 @@ const handleAdd = async function () { // 新增节流 const throttleGetActivity = _.throttle(handleAdd, 5000, { trailing: false }); const handleEdit = async function () { + if (!hasMenuPermission(permissionMapping.edit_activity)) { + ElMessage.error('无此权限') + return + } const activityName = editForm.value.activityName if (!validateActivityName(activityName)) return @@ -323,6 +335,10 @@ const handleEdit = async function () { } } const handleDel = async function (row) { + if (!hasMenuPermission(permissionMapping.delete_activity)) { + ElMessage.error('无此权限') + return + } if (!currentDelRow.value) { ElMessage.error('当前选择无数据') return From b33c9f01378311f44871b8034cbcd129fdc82a01 Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 27 Nov 2025 13:19:06 +0800 Subject: [PATCH 11/12] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E9=87=91=E5=B8=81=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E9=93=81=E7=B2=89=E5=92=8C=E7=9B=B4=E6=92=AD=E6=B2=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/consume/bean/articleVideo.vue | 6 +- src/views/consume/bean/dieHardFan.vue | 5 +- src/views/consume/bean/liveStream.vue | 102 ++-- src/views/workspace/index_.vue | 911 -------------------------------- 4 files changed, 63 insertions(+), 961 deletions(-) delete mode 100644 src/views/workspace/index_.vue diff --git a/src/views/consume/bean/articleVideo.vue b/src/views/consume/bean/articleVideo.vue index 5e3e238..5ea2851 100644 --- a/src/views/consume/bean/articleVideo.vue +++ b/src/views/consume/bean/articleVideo.vue @@ -195,7 +195,9 @@ const ConsumeSelectBy = async function (val) { endTime: beanConsumeArticle.value.endTime, sortField: beanConsumeArticle.value.sortField, sortOrder: beanConsumeArticle.value.sortOrder, - flag: flag.value + flag: flag.value , + roleId: adminData.value.roleId + } } }) @@ -394,6 +396,8 @@ const exportExcel = async function () { ...beanConsumeArticle.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportArticle', data: params }) diff --git a/src/views/consume/bean/dieHardFan.vue b/src/views/consume/bean/dieHardFan.vue index 1984a67..8e6fbf9 100644 --- a/src/views/consume/bean/dieHardFan.vue +++ b/src/views/consume/bean/dieHardFan.vue @@ -196,7 +196,8 @@ const ConsumeSelectBy = async function (val) { endTime: beanConsumeFan.value.endTime || '', sortField: beanConsumeFan.value.sortField || 'consumeTime', sortOrder: beanConsumeFan.value.sortOrder || 'desc', - flag: flag.value + flag: flag.value, + roleId: adminData.value.roleId } } }) @@ -398,6 +399,8 @@ const exportExcel = async function () { ...beanConsumeFan.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportFan', data: params }) diff --git a/src/views/consume/bean/liveStream.vue b/src/views/consume/bean/liveStream.vue index b700ae2..9dd6326 100644 --- a/src/views/consume/bean/liveStream.vue +++ b/src/views/consume/bean/liveStream.vue @@ -1,16 +1,17 @@ - - \ No newline at end of file From 52dd3354ff1f50184ac3d0c76ae9483d869e4eba Mon Sep 17 00:00:00 2001 From: lihui Date: Thu, 27 Nov 2025 13:28:59 +0800 Subject: [PATCH 12/12] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?=E9=A2=91=E9=81=93=E7=AE=A1=E7=90=86=E7=9A=84=E9=93=81=E7=B2=89?= =?UTF-8?q?=E5=92=8C=E7=9B=B4=E6=92=AD=E6=B2=A1=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/channelManage/cart/cart.vue | 3 +++ src/views/channelManage/fans/fans.vue | 2 ++ src/views/channelManage/reward/reward.vue | 4 +++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/channelManage/cart/cart.vue b/src/views/channelManage/cart/cart.vue index 67c097e..c5f02a4 100644 --- a/src/views/channelManage/cart/cart.vue +++ b/src/views/channelManage/cart/cart.vue @@ -156,6 +156,7 @@ const searchCart = async function () { ...beanCart.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId } } }) @@ -282,6 +283,8 @@ const exportExcel = async function () { ...beanCart.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportArticle', data: params }) diff --git a/src/views/channelManage/fans/fans.vue b/src/views/channelManage/fans/fans.vue index 7d66e1d..7d57c14 100644 --- a/src/views/channelManage/fans/fans.vue +++ b/src/views/channelManage/fans/fans.vue @@ -399,6 +399,8 @@ const exportExcel = async function () { ...beanConsumeFan.value, sortField: sortField.value, sortOrder: sortOrder.value, + roleId: adminData.value.roleId + }, } const res = await API({ url: '/export/exportFan', data: params }) diff --git a/src/views/channelManage/reward/reward.vue b/src/views/channelManage/reward/reward.vue index 697e9c9..c954418 100644 --- a/src/views/channelManage/reward/reward.vue +++ b/src/views/channelManage/reward/reward.vue @@ -419,7 +419,9 @@ const exportExcel = async function () { startTime: beanConsumeLive.value.startTime || '', endTime: beanConsumeLive.value.endTime || '', sortField: sortField.value || 'consumeTime', - sortOrder: sortOrder.value || 'desc' + sortOrder: sortOrder.value || 'desc', + roleId: adminData.value.roleId + } } // 打印请求参数,方便调试