-
+
@@ -80,6 +80,16 @@
{{ scope.row.uploadMoney }}
+
+
+ {{ scope.row.secondaryUploadDate }}
+
+
+
+
+ {{ scope.row.secondaryUploadMoney }}
+
+
{{ scope.row.stayDetermineMoney }}
@@ -211,7 +221,7 @@ export default {
year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1
}
- dateTime = date.year + '年' + (date.month >= 10 ? date.month : '0' + date.month) + '月'
+ dateTime = date.year + '年' + date.month + '月'
const aa = []
const bb = []
row.forEach((element) => {
@@ -223,7 +233,7 @@ export default {
withRebate: element.estimateRebate,
brandName: element.brandName,
brandSid: element.brandSid,
- uploadMoney: element.uploadMoney,
+ uploadMoney: parseFloat(element.uploadMoney !== '' ? element.uploadMoney : 0) + parseFloat(element.secondaryUploadMoney !== '' ? element.secondaryUploadMoney : 0),
stayDetermineMoney: element.stayDetermineMoney,
adjustmentMoney: element.adjustmentMoney,
money: element.money
@@ -233,7 +243,7 @@ export default {
sid: element.sid,
withholdingDate: element.withholdingDateCopy,
withRebate: element.estimateRebate,
- uploadMoney: element.uploadMoney,
+ uploadMoney: parseFloat(element.uploadMoney !== '' ? element.uploadMoney : 0) + parseFloat(element.secondaryUploadMoney !== '' ? element.secondaryUploadMoney : 0),
stayDetermineMoney: element.stayDetermineMoney,
adjustmentMoney: element.adjustmentMoney,
money: element.money
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 7875ec38d3..87dc207580 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
@@ -45,8 +45,10 @@
待核对专项返利列表
- 导入
- 导出
+ 一次导出
+ 一次导入
+ 二次导出
+ 二次导入
@@ -60,7 +62,7 @@
- {{ scope.row.uploadState == '0' ? '未调整' : scope.row.uploadState == '1' ? '已调整' : ''}}
+ {{ scope.row.adjustmentState == '0' ? '待确认' : scope.row.adjustmentState == '1' ? '确认调整' : scope.row.adjustmentState == '2' ? '暂不调整' : '' }}
@@ -137,8 +139,8 @@
- 保存
- 调整
+ 保存
+ 调整
@@ -244,6 +246,41 @@
+
+
+
+
+
+ 选取文件
+ 上传
+
+
+
+
文件上传结果
+
+ {{ uploadResultMesssage }}
+
+
+
+
+
@@ -355,6 +392,18 @@ export default {
secondRebate: '',
adjustmentMoney: '',
cost: ''
+ },
+ dialogFileVisible: false,
+ updateAction: '',
+ fileList: [],
+ uploadResultMesssage: '',
+ uploadData: {
+ sid: '',
+ userSid: '',
+ orgPath: ''
+ },
+ headers: {
+ token: window.sessionStorage.getItem('token')
}
}
},
@@ -399,9 +448,6 @@ export default {
case 'toAdd':
this.toAdd()
break
- case 'doImport':
- this.doImport()
- break
case 'doClose':
this.doClose()
break
@@ -631,6 +677,96 @@ export default {
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
+ },
+ exportByFirst() {
+ const loading = this.$loading({
+ lock: true,
+ text: 'Loading',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+ req.excelListOne(this.listQuery.params).then((resp) => {
+ loading.close()
+ const blob = new Blob([resp], {
+ type: 'application/vnd.ms-excel'
+ })
+ const fileName = '一次导入模版' + '.xls'
+ const elink = document.createElement('a')
+ elink.download = fileName
+ elink.style.display = 'nonde'
+ elink.href = URL.createObjectURL(blob)
+ document.body.appendChild(elink)
+ elink.click()
+ URL.revokeObjectURL(elink.href)
+ document.body.removeChild(elink)
+ }).catch(() => {
+ loading.close()
+ })
+ },
+ importByFirst() {
+ this.dialogFileVisible = true
+ this.updateAction = process.env.VUE_APP_BASE_API + '/scm/v1/scmspecialrebate/getExcelOneInfo'
+ this.fileList = []
+ this.uploadResultMesssage = ''
+ },
+ exportBySecond() {
+ const loading = this.$loading({
+ lock: true,
+ text: 'Loading',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
+ req.excelListTwo(this.listQuery.params).then((resp) => {
+ loading.close()
+ const blob = new Blob([resp], {
+ type: 'application/vnd.ms-excel'
+ })
+ const fileName = '二次导入模版' + '.xls'
+ const elink = document.createElement('a')
+ elink.download = fileName
+ elink.style.display = 'nonde'
+ elink.href = URL.createObjectURL(blob)
+ document.body.appendChild(elink)
+ elink.click()
+ URL.revokeObjectURL(elink.href)
+ document.body.removeChild(elink)
+ }).catch(() => {
+ loading.close()
+ })
+ },
+ importBySecond() {
+ this.dialogFileVisible = true
+ this.updateAction = process.env.VUE_APP_BASE_API + '/scm/v1/scmspecialrebate/getExcelTwoInfo'
+ this.fileList = []
+ this.uploadResultMesssage = ''
+ },
+ handleRemove() {
+ this.uploadResultMesssage = ''
+ },
+ submitUpload() {
+ this.uploadData.userSid = window.sessionStorage.getItem('userSid')
+ this.uploadData.orgPath = window.sessionStorage.getItem('defaultOrgPath')
+ this.$refs.upload.submit()
+ },
+ handleSuccess(resp, file, fileList) {
+ const _this = this
+ if (resp.success) {
+ _this.uploadResultMesssage = resp.msg
+ } else {
+ _this.uploadResultMesssage = resp.msg
+ }
+ },
+ handleConfirm() {
+ if (this.uploadResultMesssage === '') {
+ this.$message({ showClose: true, type: 'error', message: '请先上传单车返利模版' })
+ return
+ } else {
+ this.dialogFileVisible = false
+ this.updateAction = ''
+ this.uploadData.userSid = ''
+ this.uploadData.orgPath = ''
+ this.getList()
+ }
}
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/relation/daifeipeizhuanxiang.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/relation/daifeipeizhuanxiang.vue
index d25c4f7bca..edec40a88a 100644
--- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/relation/daifeipeizhuanxiang.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/relation/daifeipeizhuanxiang.vue
@@ -35,11 +35,6 @@
-
-
- {{ scope.row.state === '3' ? '已上传' : ''}}
-
-
{{ scope.row.disNum }}
@@ -154,6 +149,7 @@ export default {
state: '',
createEndTime: '',
createStartTime: '',
+ isPage: '0',
sidList: []
},
current: 1,
@@ -265,6 +261,7 @@ export default {
this.listQuery.params.createEndTime = ''
this.listQuery.params.createStartTime = ''
this.listQuery.params.state = ''
+ this.listQuery.params.isPage = '0'
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue
index 9cd3db4376..cbfc97b4cd 100644
--- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue
@@ -30,11 +30,6 @@
-
-
-
-
-
查询
@@ -53,11 +48,6 @@
-
-
- {{ scope.row.state === '3' ? '已上传' : ''}}
-
-
{{ scope.row.disNum }}
@@ -149,16 +139,6 @@ export default {
sids: [],
brand_list: [],
rebateType_list: [],
- state_list: [
- {
- dictKey: 1,
- dictValue: '未上传'
- },
- {
- dictKey: 3,
- dictValue: '已上传'
- }
- ],
listLoading: false,
listQuery: {
params: {
@@ -173,7 +153,8 @@ export default {
sidList: [],
orgPath: '',
userSid: '',
- menuUrl: ''
+ menuUrl: '',
+ isPage: '1'
},
current: 1,
size: 5,
@@ -283,7 +264,8 @@ export default {
sidList: [],
orgPath: '',
userSid: '',
- menuUrl: ''
+ menuUrl: '',
+ isPage: '1'
},
current: 1,
size: 5,
diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/relation/daifeipeizhuanxiang.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/relation/daifeipeizhuanxiang.vue
index f668622558..9098c04914 100644
--- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/relation/daifeipeizhuanxiang.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/relation/daifeipeizhuanxiang.vue
@@ -35,11 +35,6 @@
-
-
- {{ scope.row.state === '3' ? '已上传' : ''}}
-
-
{{ scope.row.disNum }}
@@ -154,6 +149,7 @@ export default {
state: '',
createEndTime: '',
createStartTime: '',
+ isPage: '0',
sidList: []
},
current: 1,
@@ -265,6 +261,7 @@ export default {
this.listQuery.params.createEndTime = ''
this.listQuery.params.createStartTime = ''
this.listQuery.params.state = ''
+ this.listQuery.params.isPage = '0'
this.listQuery.current = 1
this.listQuery.total = 0
this.listQuery.size = 5
diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue
index a820cb46ff..66e2170070 100644
--- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue
@@ -2,7 +2,7 @@
-
+
@@ -80,6 +80,16 @@
{{ scope.row.uploadMoney }}
+
+
+ {{ scope.row.secondaryUploadDate }}
+
+
+
+
+ {{ scope.row.secondaryUploadMoney }}
+
+
{{ scope.row.stayDetermineMoney }}
@@ -211,7 +221,7 @@ export default {
year: nowDate.getFullYear(),
month: nowDate.getMonth() + 1
}
- dateTime = date.year + '年' + (date.month >= 10 ? date.month : '0' + date.month) + '月'
+ dateTime = date.year + '年' + date.month + '月'
const aa = []
const bb = []
row.forEach((element) => {
@@ -223,7 +233,7 @@ export default {
withRebate: element.estimateRebate,
brandName: element.brandName,
brandSid: element.brandSid,
- uploadMoney: element.uploadMoney,
+ uploadMoney: parseFloat(element.uploadMoney !== '' ? element.uploadMoney : 0) + parseFloat(element.secondaryUploadMoney !== '' ? element.secondaryUploadMoney : 0),
stayDetermineMoney: element.stayDetermineMoney,
adjustmentMoney: element.adjustmentMoney,
money: element.money
@@ -233,7 +243,7 @@ export default {
sid: element.sid,
withholdingDate: element.withholdingDateCopy,
withRebate: element.estimateRebate,
- uploadMoney: element.uploadMoney,
+ uploadMoney: parseFloat(element.uploadMoney !== '' ? element.uploadMoney : 0) + parseFloat(element.secondaryUploadMoney !== '' ? element.secondaryUploadMoney : 0),
stayDetermineMoney: element.stayDetermineMoney,
adjustmentMoney: element.adjustmentMoney,
money: element.money
From 9c0fcbd1f164f1e0ca9b2b53c77d7e685b5cca19 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Thu, 12 Sep 2024 17:16:59 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=93=E9=A1=B9?=
=?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
---
.../specialrebatemanagement/specialrebatemanagement.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue
index 170b639efb..a56547b0f4 100644
--- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue
@@ -54,7 +54,7 @@
- {{ scope.row.state === '0' ? '未计提' : scope.row.state === '1' ? '已计提' : scope.row.state === '2' ? '已核对' : '' }}
+ {{ scope.row.state == '0' ? '未计提' : scope.row.state == '1' ? '计提中' : scope.row.state == '2' ? '待核对' : scope.row.state == '3' ? '核对中' : scope.row.state == '5' ? '分配中' : scope.row.state == '6' ? '' : scope.row.state == '已分配' ? '' : '' }}