From c600c6b84cc3198e44b909315869a9ee0017da84 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 17 Oct 2024 16:26:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E6=AC=BE?= =?UTF-8?q?=E8=BF=94=E5=88=A9=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collectionrebatemanagement.js | 8 + .../collectionrebatemanagement.vue | 297 ++++++++++++++---- .../collectionrebatemanagementAdd.vue | 221 ++++++++----- .../collectionrebatemanagementInfo.vue | 157 +++++---- 4 files changed, 480 insertions(+), 203 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebatemanagement.js b/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebatemanagement.js index a5ed358c7d..79bc5e4bcd 100644 --- a/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebatemanagement.js +++ b/anrui-scm/anrui-scm-ui/src/api/manufacturerrebates/collectionrebatemanagement.js @@ -34,5 +34,13 @@ export default { url: '/scm/v1/scmcollectionrebate/fetchDetailsBySid/' + data, method: 'get' }) + }, + confirm: function(data) { + return request({ + url: '/scm/v1/scmcollectionrebate/confirm', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) } } diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue index 6054063213..8bef9e03e5 100644 --- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue +++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue @@ -8,6 +8,15 @@ {{ searchxianshitit }}
@@ -122,8 +85,56 @@
+ + + + +
+ + + + + + + + + + + + + + + + + + +
+ 查询 + 重置 + 确认 +
+
+ + + + + + + + + + + + + +
+
+ + +
+
@@ -149,6 +160,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', @@ -169,6 +194,9 @@ export default { collectionType_list: [], listQuery: { params: { + createOrgName: '', + purchaseSystemName: '', + brandName: '', collectionTypeKey: '', createOrgSid: '', createStartTime: '', @@ -185,7 +213,24 @@ export default { size: 5, total: 0 }, - rules: {} + recoveriesVisible: false, + recoveriesKey: 2, + recoveriesList: { + current: 1, + size: 5, + total: 0, + params: { + purchaseSystemName: '', + brandName: '', + collectionTypeKey: '', + createOrgSid: '', + collectionStartDate: '', + collectionEndDate: '' + } + }, + listByRecoveries: [], + multipleSelection: [], + recoveriesLoading: false } }, created() { @@ -221,6 +266,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 @@ -251,7 +302,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 { @@ -268,6 +319,9 @@ export default { handleReset() { this.listQuery = { params: { + createOrgName: '', + purchaseSystemName: '', + brandName: '', collectionTypeKey: '', createOrgSid: '', createStartTime: '', @@ -290,10 +344,115 @@ export default { this.viewState = 2 this.$refs['divAdd'].showEdit(row, this.listQuery.params.createOrgSid) }, + 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.delete(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(() => { + }) + }, toInfo(row) { this.viewState = 3 this.$refs['divInfo'].showInfo(row) }, + toAdd() { + this.recoveriesVisible = true + this.recoveriesList = { + current: 1, + size: 5, + total: 0, + params: { + purchaseSystemName: '', + brandName: '', + collectionTypeKey: '', + createOrgSid: '', + collectionStartDate: '', + collectionEndDate: '' + } + } + this.listByRecoveries = [] + }, + // 现车序号 + recoveriesindexMethod(index) { + var pagestart = (this.recoveriesList.current - 1) * this.recoveriesList.size + var pageindex = index + 1 + pagestart + return pageindex + }, + selectionChange(row) { + this.multipleSelection = row + }, + getRecoveriesList() { + this.recoveriesLoading = true + this.recoveriesList.params.createOrgSid = this.listQuery.params.createOrgSid + req.listPage(this.recoveriesList).then((response) => { + this.recoveriesLoading = false + if (response.success) { + this.listByRecoveries = response.data.records + this.recoveriesList.total = response.data.total + } else { + this.listByRecoveries = [] + this.recoveriesList.total = 0 + } + }) + }, + selectRecoveries() { + this.recoveriesList.current = 1 + this.getRecoveriesList() + }, + resetRecoveries() { + this.recoveriesList = { + params: { + purchaseSystemName: '', + brandName: '', + collectionTypeKey: '', + createOrgSid: '', + collectionStartDate: '', + collectionEndDate: '' + }, + current: 1, + size: 5, + total: 0 + } + this.getRecoveriesList() + }, + handleConfirm() { + if (this.multipleSelection.length > 0) { + req.confirm(this.multipleSelection).then((res) => { + if (res.success) { + this.$message({ showClose: true, type: 'success', message: '操作成功' }) + this.recoveriesVisible = false + this.getList() + } + }) + } else { + this.$message({ showClose: true, type: 'error', message: '请至少选择一条记录进行操作' }) + } + }, + handleReturn() { + this.recoveriesVisible = false + }, resetState() { this.viewState = 1 }, diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagementAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagementAdd.vue index 9dbc5ae3b0..0da92c8d63 100644 --- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagementAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanguanli/collectionrebatemanagementAdd.vue @@ -7,8 +7,7 @@
{{ viewTitle }}
- 保存 - + 保存 关闭
@@ -16,95 +15,110 @@
回款返利
- - - - 回款方式 + + + +
分公司
+ {{ formobj.useOrgName }}
- - - {{ formobj.collectionTypeValue }} - - - - 厂家销售通路 + +
采购系统
+ {{ formobj.purchaseSystemName }}
- - - {{ formobj.manufaSaleChannelValue }} - + +
品牌
+ {{ formobj.brandName }}
- - 回款日期 +
+ + +
回款方式
+ {{ formobj.collectionTypeValue }}
- - - {{ formobj.collectionDate }} - + +
厂家销售通路
+ {{ formobj.manufaSaleChannelValue }}
- - 回款金额 + +
回款日期
+ {{ formobj.collectionDate }}
- - - {{ formobj.collectionMoney }} - + +
回款金额
+ {{ formobj.collectionMoney }}
- - 是否减运费 + +
*是否减运费
+ + + + + +
- + +
运费
- + + +
+ +
*是否减上装
+ +
- - 运费 + +
上装金额
+ + +
- - +
+ + +
*返利类型
+ + + + +
- - 计算标准(%) + +
*返利名称
+
- - + +
*计算标准(%)
+
- - 预计返利 + +
预计返利
+ {{ estimateRebateSum }}
- - {{ estimateRebateSum }} +
+ + +
备注
+
车辆回款返利列表
- 返利分配 + 明细计算
- - - - - - - - - - + + + +
@@ -115,7 +129,7 @@ From 99db7da61b31006c68706f5f19a1da1d4d4bfb5a Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 18 Oct 2024 10:48:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E6=AC=BE?= =?UTF-8?q?=E8=BF=94=E5=88=A9=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collectionrebatewithholding.vue | 87 ++++---- .../collectionrebatewithholdingAdd.vue | 194 ++++++----------- .../collectionrebatewithholdingInfo.vue | 103 +++------ .../huikuanyuti/relation/huikuanfanliAdd.vue | 86 +++----- .../huikuanyuti/relation/huikuanfanliInfo.vue | 61 ++---- .../relation/huikuanfanliselect.vue | 105 ++++------ .../huikuanfanliyutiDanBanInfo.vue | 109 +++------- .../huikuanfanliyutiEdit.vue | 196 ++++++------------ .../huikuanfanliyutiYiBanInfo.vue | 97 +++------ .../relation/huikuanfanliAdd.vue | 92 ++++---- .../relation/huikuanfanliInfo.vue | 69 ++---- .../relation/huikuanfanliguanliInfo.vue | 152 +++++++++----- .../relation/huikuanfanliselect.vue | 109 +++++----- 13 files changed, 548 insertions(+), 912 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue index 83f69359ae..0403b4be0b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue +++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue @@ -8,12 +8,16 @@ {{ searchxianshitit }}