From f8326cb750fed82c08b0a1d1feb227a09baedef3 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Tue, 11 Feb 2025 17:50:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8D=95=E8=BD=A6=E8=BF=94?=
=?UTF-8?q?=E5=88=A9=E6=A0=B8=E5=AF=B9=E3=80=81=E4=B8=93=E9=A1=B9=E8=BF=94?=
=?UTF-8?q?=E5=88=A9=E6=A0=B8=E5=AF=B9=20--=20=E5=BE=85=E6=A0=B8=E5=AF=B9?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E5=90=88=E8=AE=A1=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/bikerebate/bicyclerebatecheck.js | 9 ++++
.../api/specialrebate/specialrebatecheck.js | 11 ++++-
.../bicyclerebatetobechecked.vue | 41 +++++++++++++++++--
.../specialrebatetobechecked.vue | 41 +++++++++++++++++--
4 files changed, 95 insertions(+), 7 deletions(-)
diff --git a/anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js b/anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js
index ccc8febec6..100d8beb74 100644
--- a/anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js
+++ b/anrui-scm/anrui-scm-ui/src/api/bikerebate/bicyclerebatecheck.js
@@ -10,6 +10,15 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
+ // 单车返利核对(待核对)查询不分页数据
+ checkApplyGetVehRebateAll: function(data) {
+ return request({
+ url: '/scm/v1/scmvehrebate/checkApplyGetVehRebateAll',
+ method: 'post',
+ data: data,
+ headers: { 'Content-Type': 'application/json' }
+ })
+ },
// 一次导出
excelListOne: function(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatecheck.js b/anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatecheck.js
index 63362654dd..cc6a96e18c 100644
--- a/anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatecheck.js
+++ b/anrui-scm/anrui-scm-ui/src/api/specialrebate/specialrebatecheck.js
@@ -1,7 +1,7 @@
import request from '@/utils/request'
export default {
- // 单车返利核对(待核对)查询分页列表
+ // 专项返利核对(待核对)查询分页列表
listPage: function(data) {
return request({
url: '/scm/v1/scmspecialrebate/checkApplyGetSpecialRebate',
@@ -10,6 +10,15 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
+ // 专项返利核对(待核对)查询不分页
+ checkApplyGetSpecialRebateAll: function(data) {
+ return request({
+ url: '/scm/v1/scmspecialrebate/checkApplyGetSpecialRebateAll',
+ method: 'post',
+ data: data,
+ headers: { 'Content-Type': 'application/json' }
+ })
+ },
// 一次导出
excelListOne: function(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue
index 5722faf4b5..dc911326db 100644
--- a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue
@@ -57,8 +57,8 @@
-
-
+
+
@@ -84,8 +84,8 @@
-
+
@@ -410,6 +410,7 @@ export default {
// 查询条件 -----------
tableKey: 0,
list: [],
+ listAll: [],
sids: [],
FormLoading: false,
state_list: [
@@ -549,6 +550,13 @@ export default {
this.listQuery.total = 0
}
})
+ req.checkApplyGetVehRebateAll(this.listQuery.params).then((res) => {
+ if (res.success) {
+ this.listAll = res.data
+ } else {
+ this.listAll = []
+ }
+ })
},
// 查询按钮
handleFilter() {
@@ -783,6 +791,33 @@ export default {
this.uploadData.orgPath = ''
this.getList()
}
+ },
+ // 合计
+ getSummaries(param) {
+ param.data = this.listAll
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '合计'
+ return
+ }
+ const values = data.map(item => Number(item[column.property]))
+ if (column.property === 'manufactorSettlementPrice' || column.property === 'freight' || column.property === 'estimateRebate' || column.property === 'expectCost' || column.property === 'uploadMoney' || column.property === 'secondaryUploadMoney' || column.property === 'stayDetermineMoney' || column.property === 'money' || column.property === 'diffAmount' || column.property === 'adjustmentMoney') {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
+ } else {
+ return Math.round((parseFloat(prev)) * 100) / 100
+ }
+ }, 0)
+ sums[index] += ''
+ } else {
+ sums[index] = ''
+ }
+ })
+ return sums
}
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue
index 29c09866a9..bcca43b973 100644
--- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue
@@ -56,8 +56,8 @@
-
-
+
+
@@ -79,8 +79,8 @@
-
+
@@ -395,6 +395,7 @@ export default {
// 查询条件 -----------
tableKey: 0,
list: [],
+ listAll: [],
sids: [],
FormLoading: false,
rebateType_list: [],
@@ -546,6 +547,13 @@ export default {
this.listQuery.total = 0
}
})
+ req.checkApplyGetSpecialRebateAll(this.listQuery.params).then((res) => {
+ if (res.success) {
+ this.listAll = res.data
+ } else {
+ this.listAll = []
+ }
+ })
},
// 查询按钮
handleFilter() {
@@ -779,6 +787,33 @@ export default {
this.uploadData.orgPath = ''
this.getList()
}
+ },
+ // 合计
+ getSummaries(param) {
+ param.data = this.listAll
+ const { columns, data } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '合计'
+ return
+ }
+ const values = data.map(item => Number(item[column.property]))
+ if (column.property === 'estimateRebate' || column.property === 'expectCost' || column.property === 'uploadMoney' || column.property === 'secondaryUploadMoney' || column.property === 'stayDetermineMoney' || column.property === 'money' || column.property === 'diffAmount' || column.property === 'adjustmentMoney') {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
+ } else {
+ return Math.round((parseFloat(prev)) * 100) / 100
+ }
+ }, 0)
+ sums[index] += ''
+ } else {
+ sums[index] = ''
+ }
+ })
+ return sums
}
}
}