From 240a31767a2bec882f44b54726113ade5210d62d Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Fri, 25 Oct 2024 16:19:34 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E6=AC=BE?=
=?UTF-8?q?=E8=BF=94=E5=88=A9=E5=88=86=E6=91=8A=E7=AE=A1=E7=90=86=E3=80=81?=
=?UTF-8?q?=E5=9B=9E=E6=AC=BE=E8=BF=94=E5=88=A9=E5=88=86=E6=91=8A=E5=AE=A1?=
=?UTF-8?q?=E6=A0=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../collectionrebateallot.js | 17 +
.../src/router/modules/codemenu.js | 17 +-
.../fenpeishenhe/collectionAudit.vue | 261 +++++++++++++
.../fenpeishenhe/collectionrebateallotAdd.vue | 218 +++++++++++
.../collectionrebateallotInfo.vue | 176 +++++++++
.../huikuanfenpei/collectionrebateallot.vue | 220 +++++++----
.../collectionrebateallotAdd.vue | 260 -------------
.../collectionrebateallotByVehicleAdd.vue | 354 +++++++++++-------
.../collectionrebateallotInfo.vue | 184 ---------
.../collectionrebateallotSelectVehicle.vue | 136 +++----
10 files changed, 1096 insertions(+), 747 deletions(-)
create mode 100644 anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionAudit.vue
create mode 100644 anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotAdd.vue
create mode 100644 anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotInfo.vue
delete mode 100644 anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotAdd.vue
delete mode 100644 anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotInfo.vue
diff --git a/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebateallot.js b/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebateallot.js
index 8efb80917e..941a29dd53 100644
--- a/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebateallot.js
+++ b/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebateallot.js
@@ -19,6 +19,14 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
+ // 获取分摊参考比例
+ compute: function(data) {
+ return request({
+ url: '/scm/v1/scmcollectionrebatecheckapplydetail/compute',
+ method: 'get',
+ params: data
+ })
+ },
// 新增保存修改记录
save: function(data) {
return request({
@@ -28,6 +36,15 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
+ // 删除
+ delBySids: function(data) {
+ return request({
+ url: '/scm/v1/scmcollectionrebatedistribution/delBySids',
+ method: 'DELETE',
+ data: data,
+ headers: { 'Content-Type': 'application/json' }
+ })
+ },
// 通过sid查询一条记录
fetchBySid: function(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
index 89c15d70c0..c06e7fd8e3 100644
--- a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
+++ b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
@@ -683,7 +683,7 @@ const codemenu = [{
component: () => import('@/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue'),
name: 'HuiKuanFanLiGuanLi',
meta: {
- title: '厂家回款返利管理',
+ title: '回款返利管理',
noCache: true
}
},
@@ -692,7 +692,7 @@ const codemenu = [{
component: () => import('@/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue'),
name: 'HuiKuanFanLiYuYiGuanLi',
meta: {
- title: '厂家回款返利预提',
+ title: '回款返利预提',
noCache: true
}
},
@@ -701,7 +701,7 @@ const codemenu = [{
component: () => import('@/views/manufacturerrebates/huikuanhedui/collectionrebatetobechecked.vue'),
name: 'HuiKuanFanLiDaiHeDui',
meta: {
- title: '厂家回款返利核对',
+ title: '回款返利核对',
noCache: true
}
},
@@ -710,7 +710,16 @@ const codemenu = [{
component: () => import('@/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue'),
name: 'HuiKuanFanliFenPei',
meta: {
- title: '厂家回款返利分摊',
+ title: '回款返利分摊',
+ noCache: true
+ }
+ },
+ {
+ path: '/fenpeishenhe/collectionAudit',
+ component: () => import('@/views/manufacturerrebates/fenpeishenhe/collectionAudit.vue'),
+ name: 'HuiKuanShenHe',
+ meta: {
+ title: '回款返利分摊审核',
noCache: true
}
},
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionAudit.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionAudit.vue
new file mode 100644
index 0000000000..f062b9e5a7
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionAudit.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
{{ searchxianshitit }}
+
+
+
+
+
+
+
+
+ 办理
+ 查看
+
+
+
+
+ {{ scope.row.state }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotAdd.vue
new file mode 100644
index 0000000000..ffc57ed78f
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotAdd.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
回款返利分配
+
+
+
+ 分公司
+ {{ formobj.createOrgName }}
+
+
+ 采购系统
+ {{ formobj.purchaseSystemName }}
+
+
+ 品牌
+ {{ formobj.brandName }}
+
+
+ 提交日期
+ {{ formobj.subitDate }}
+
+
+
+
+ 分摊参考比例
+ {{ formobj.shareGinExaProportion }}
+
+
+ 分摊比例
+ {{ formobj.shareProportion }}
+
+
+ 分摊返利总额
+ {{ formobj.shareRebateTotal }}
+
+
+ 台数
+ {{ formobj.number }}
+
+
+
+
+ 备注
+ {{ formobj.remarks }}
+
+
+
+
+ 附件
+
+
+
+ 回款返利分摊车辆列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotInfo.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotInfo.vue
new file mode 100644
index 0000000000..3a56ab744b
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/fenpeishenhe/collectionrebateallotInfo.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
+ 分公司
+ {{ formobj.createOrgName }}
+
+
+ 采购系统
+ {{ formobj.purchaseSystemName }}
+
+
+ 品牌
+ {{ formobj.brandName }}
+
+
+ 提交日期
+ {{ formobj.subitDate }}
+
+
+
+
+ 分摊参考比例
+ {{ formobj.shareGinExaProportion }}
+
+
+ 分摊比例
+ {{ formobj.shareProportion }}
+
+
+ 分摊返利总额
+ {{ formobj.shareRebateTotal }}
+
+
+ 台数
+ {{ formobj.number }}
+
+
+
+
+ 备注
+ {{ formobj.remarks }}
+
+
+
+
+ 附件
+
+
+
+ 回款返利分摊车辆列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue
index ac0cf5b167..ce8f69b57e 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue
@@ -2,24 +2,30 @@
-
+
{{ searchxianshitit }}
-
-
-
+
+
+
+
- 办理
+ 办理
查看
- {{ scope.row.distributionState }}
-
-
-
-
- {{ scope.row.createOrgName }}
-
-
-
-
- {{ scope.row.brandName }}
-
-
-
-
- {{ scope.row.withholdingApply }}
-
-
-
-
- {{ scope.row.collectionMoney }}
-
-
-
-
- {{ scope.row.estimateRebate }}
-
-
-
-
- {{ scope.row.shareGinExaProportion }}
-
-
-
-
- {{ scope.row.shareProportion }}
-
-
-
-
- {{ scope.row.shareRebateTotal }}
-
-
-
-
- {{ scope.row.thisRebateBalance }}
+ {{ scope.row.state }}
+
+
+
+
+
+
+
+
@@ -99,9 +69,8 @@
-
-
-
+
+
@@ -110,9 +79,9 @@ import req from '@/api/manufacturerrebates/collectionrebateallot'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
-import { brandDown, getOrgSidByPath } from '@/api/cheliang/dictcommons'
+import { getOrgSidByPath } from '@/api/cheliang/dictcommons'
import collectionrebateallotByVehicleAdd from './collectionrebateallotByVehicleAdd'
-import collectionrebateallotInfo from './collectionrebateallotInfo'
+import collectionrebateallotInfo from '../fenpeishenhe/collectionrebateallotInfo'
export default {
name: 'HuiKuanFanLiFenPei',
@@ -127,6 +96,20 @@ export default {
return {
btndisabled: false,
btnList: [
+ {
+ type: 'primary',
+ size: 'small',
+ icon: 'plus',
+ btnKey: 'toAdd',
+ btnLabel: '新增'
+ },
+ {
+ type: 'danger',
+ size: 'small',
+ icon: 'del',
+ btnKey: 'doDel',
+ btnLabel: '删除'
+ },
{
type: 'info',
size: 'small',
@@ -141,16 +124,37 @@ export default {
// 查询条件 -----------
tableKey: 0,
list: [],
+ sids: [],
+ state_list: [
+ {
+ dictKey: '0',
+ dictValue: '未审核'
+ },
+ {
+ dictKey: '1',
+ dictValue: '审核中'
+ },
+ {
+ dictKey: '2',
+ dictValue: '已审核'
+ },
+ {
+ dictKey: '3',
+ dictValue: '已退回'
+ }
+ ],
FormLoading: false,
listLoading: false,
- brand_list: [],
listQuery: {
params: {
- brandSid: '',
+ createOrgName: '',
+ purchaseSystemName: '',
+ brandName: '',
createOrgSid: '',
- createStartTime: '',
- createEndTime: '',
- withholdingApply: '',
+ subitDateStart: '',
+ subitDateEnd: '',
+ state: '',
+ isAuit: false,
orgPath: '',
userSid: '',
menuUrl: ''
@@ -174,11 +178,6 @@ export default {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) {
this.listQuery.params.createOrgSid = resp.data
- brandDown({ useOrg: resp.data }).then((res) => {
- if (res.success) {
- this.brand_list = res.data
- }
- })
this.getList()
}
})
@@ -195,6 +194,12 @@ export default {
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
+ case 'toAdd':
+ this.toAdd()
+ break
+ case 'doDel':
+ this.doDel()
+ break
case 'doClose':
this.doClose()
break
@@ -208,6 +213,13 @@ export default {
var pageindex = index + 1 + pagestart
return pageindex
},
+ handleSelectionChange(row) {
+ const aa = []
+ row.forEach((element) => {
+ aa.push(element.sid)
+ })
+ this.sids = aa
+ },
// 查询列表信息
getList() {
this.listLoading = true
@@ -217,7 +229,7 @@ export default {
req.listPage(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
- if (response.success && response.data && response.data.total > 0) {
+ if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
@@ -234,11 +246,14 @@ export default {
handleReset() {
this.listQuery = {
params: {
- brandSid: '',
+ createOrgName: '',
+ purchaseSystemName: '',
+ brandName: '',
createOrgSid: '',
- createStartTime: '',
- createEndTime: '',
- withholdingApply: '',
+ subitDateStart: '',
+ subitDateEnd: '',
+ state: '',
+ isAuit: false,
orgPath: '',
userSid: '',
menuUrl: ''
@@ -249,14 +264,47 @@ export default {
}
this.init()
},
- toEdit(row) {
+ toAdd() {
this.viewState = 2
+ this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid)
+ },
+ toEdit(row) {
+ this.viewState = 3
this.$refs['divAdd'].showEdit(row, this.listQuery.params.createOrgSid)
},
toInfo(row) {
- this.viewState = 3
+ this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
+ doDel() {
+ if (this.sids.length === 0) {
+ this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
+ return
+ }
+ const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
+ this.$confirm(tip, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ const loading = this.$loading({
+ lock: true,
+ text: 'Loading',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+ req.delBySids(this.sids).then(resp => {
+ if (resp.success) {
+ this.$message({ type: 'success', message: resp.msg, showClose: true })
+ }
+ this.getList()
+ loading.close()
+ }).catch(e => {
+ loading.close()
+ })
+ }).catch(() => {
+ })
+ },
resetState() {
this.viewState = 1
},
@@ -268,4 +316,12 @@ export default {
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotAdd.vue
deleted file mode 100644
index 5ace445e4b..0000000000
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotAdd.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
-
-
-
-
-
回款返利分配
-
-
-
- 回款金额
-
-
-
- {{ formobj.collectionMoney }}
-
-
-
- 预提返利
-
-
-
- {{ formobj.estimateRebate }}
-
-
-
- 分摊参考比例
-
-
-
- {{ formobj.shareGinExaProportion }}
-
-
-
-
-
- 分摊比例
-
-
-
-
-
-
-
- 分摊返利总额
-
-
-
- {{ formobj.shareRebateTotal }}
-
-
-
- 本次返利余额
-
-
-
- {{ formobj.thisRebateBalance }}
-
-
-
-
-
-
-
-
- {{ scope.row.carModelName }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.costPrice }}
-
-
-
-
- {{ scope.row.priceDate }}
-
-
-
-
- {{ scope.row.salesDate }}
-
-
-
-
- {{ scope.row.distributionCollectionRebate }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotByVehicleAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotByVehicleAdd.vue
index 3c7e7bde9b..d335e3f3e6 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotByVehicleAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotByVehicleAdd.vue
@@ -7,107 +7,111 @@
{{ viewTitle }}
+ 保存
+ 提交
关闭
-
返利分配选择车辆
-
+
-
- 品牌
+
+ 分公司
+ {{ formobj.createOrgName }}
-
-
- {{ formobj.brandName }}
+
+ *采购系统
+
+
+
+
-
- 回款金额
-
-
-
- {{ formobj.collectionMoney }}
+
+ *品牌
+
+
+
+
-
- 车辆台数
+
+ 提交日期
+ {{ formobj.subitDate }}
-
-
- {{ formobj.number }}
-
+
+
+
+ 分摊参考比例
+ {{ formobj.shareGinExaProportion }}
-
- 厂家结算价合计
+
+ 分摊比例
+ {{ formobj.shareProportion }}
-
+
+ 分摊返利总额
+ {{ shareRebateTotal }}
+
+
+ 台数
+ {{ formobj.number }}
+
+
+
+
+ 备注
+
+
+
+
+
+ 附件
- {{ formobj.constPrice }}
+
-
-
- 选择
- 确定
-
+
-
-
-
-
- 删除
-
-
-
-
- {{ scope.row.carModelName }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.costPrice }}
-
-
-
+
+
+
- {{ scope.row.priceDate }}
-
-
-
-
- {{ scope.row.salesDate }}
+ 删除
+
+
+
+
+
+
+
-
-
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotInfo.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotInfo.vue
deleted file mode 100644
index 33ca7c5c5c..0000000000
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/collectionrebateallotInfo.vue
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
-
-
-
-
-
-
回款返利分配
-
-
-
- 回款金额
-
-
-
- {{ formobj.collectionMoney }}
-
-
-
- 预提返利
-
-
-
- {{ formobj.estimateRebate }}
-
-
-
- 分摊参考比例
-
-
-
- {{ formobj.shareGinExaProportion }}
-
-
-
-
-
- 分摊比例
-
-
-
- {{ formobj.shareProportion }}
-
-
-
- 分摊返利总额
-
-
-
- {{ formobj.shareRebateTotal }}
-
-
-
- 本次返利余额
-
-
-
- {{ formobj.thisRebateBalance }}
-
-
-
-
-
-
-
- {{ scope.row.carModelName }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.costPrice }}
-
-
-
-
- {{ scope.row.priceDate }}
-
-
-
-
- {{ scope.row.salesDate }}
-
-
-
-
- {{ scope.row.distributionCollectionRebate }}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/relation/collectionrebateallotSelectVehicle.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/relation/collectionrebateallotSelectVehicle.vue
index d81cde1597..f3f502bcc3 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/relation/collectionrebateallotSelectVehicle.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanfenpei/relation/collectionrebateallotSelectVehicle.vue
@@ -13,26 +13,26 @@
{{ searchxianshitit }}
@@ -43,42 +43,17 @@
-
-
- {{ scope.row.brandName }}
-
-
-
-
- {{ scope.row.vehicleAlias }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.color }}
-
-
-
-
- {{ scope.row.location }}
-
-
-
-
- {{ scope.row.guidedPrice }}
-
-
+
+
+
+
+
+
@@ -94,7 +69,6 @@