@@ -193,11 +169,16 @@ export default {
list: [],
sids: [],
FormLoading: false,
+ rebateType_list: [],
collectionType_list: [],
listLoading: false,
listQuery: {
params: {
- brandSid: '',
+ createOrgName: '',
+ purchaseSystemName: '',
+ brandName: '',
+ rebateTypeKey: '',
+ rebateName: '',
collectionEndDate: '',
collectionStartDate: '',
createStartTime: '',
@@ -291,7 +272,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 {
@@ -308,7 +289,11 @@ export default {
handleReset() {
this.listQuery = {
params: {
- brandSid: '',
+ createOrgName: '',
+ purchaseSystemName: '',
+ brandName: '',
+ rebateTypeKey: '',
+ rebateName: '',
collectionEndDate: '',
collectionStartDate: '',
createStartTime: '',
@@ -353,6 +338,7 @@ export default {
},
handleClick() {
this.viewState = 4
+ this.$refs['divCheck'].init()
},
toAdd() {
this.viewState = 5
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedAdd.vue
index 69c360f812..79296a456f 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedAdd.vue
@@ -16,107 +16,69 @@
回款返利
-
+
-
- 回款方式
+
+ 回款方式
+ {{ formobj.collectionTypeValue }}
-
-
- {{ formobj.collectionTypeValue }}
-
+
+ 回款日期
+ {{ formobj.collectionDate }}
-
- 回款金额
-
-
-
- {{ formobj.collectionMoney }}
-
-
-
- 回款日期
-
-
-
- {{ formobj.collectionDate }}
-
+
+ 回款金额
+ {{ formobj.collectionMoney }}
-
- 预计返利
-
-
-
- {{ formobj.estimateRebate }}
-
-
-
- 上传金额
+
+ 返利类型
+ {{ formobj.rebateTypeValue }}
-
-
+
+ 返利名称
+ {{ formobj.rebateName }}
-
- 上传日期
-
-
-
+
+ 预计返利
+ {{ formobj.estimateRebate }}
-
- 调整金额
+
+ 上传日期
+
-
- {{ adjustmentMoney() }}
+
+ 上传金额
+
-
- 调整说明
+
+ 调整金额
+ {{ formobj.adjustmentMoney }}
-
-
+
+
+
+ 调整说明
+
-
+
-
-
-
- {{ scope.row.carModelName }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.costPrice }}
-
-
-
-
- {{ scope.row.estimateRebate }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
+
+
+
+
+
+
+
@@ -137,41 +99,32 @@ export default {
tableKey: 0,
viewState: 1,
// 表单数据
- formobj: {
- sid: '',
- collectionTypeKey: '',
- collectionTypeValue: '',
- manufaSaleChannel: '',
- collectionMoney: '',
- collectionDate: '',
- freight: '',
- calculationStandard: '',
- estimateRebate: '',
- useOrgSid: '',
- useOrgName: '',
- createOrgName: '',
- createOrgSid: '',
- scmCollectionRebateVehs: []
- },
+ formobj: {},
rules: {},
submitdisabled: false
}
+ },
+ computed: {
+
},
methods: {
- UpNumber(e) {
- e.target.value = e.target.value.replace(/[^\d]/g, '') // 清除“数字”和“.”"-"以外的字符
- e.target.value = e.target.value.replace(/^00/, '0') // 开头不能有两个0
- if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
- // 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
- console.log(e.target.value)
- e.target.value = parseFloat(e.target.value)
- }
- },
- adjustmentMoney() {
- if (this.formobj.uploadMoney !== '') {
- this.formobj.adjustmentMoney = parseFloat(this.formobj.uploadMoney) - parseFloat(this.formobj.estimateRebate)
- return this.formobj.adjustmentMoney
+ getNumber(val, limit) {
+ val = val.replace(/[^0-9.]/g, '') // 保留数字
+ val = val.replace(/^00/, '0.') // 开头不能有两个0
+ val = val.replace(/^\./g, '0.') // 开头为小数点转换为0.
+ val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个
+ val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点
+ /^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0
+ const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
+ const reg = new RegExp(str)
+ if (limit === 0) {
+ // 不需要小数点
+ val = val.replace(reg, '$1')
+ } else {
+ // 通过正则保留小数点后指定的位数
+ val = val.replace(reg, '$1.$2')
}
+ return val
},
showEdit(row) {
this.$nextTick(() => {
@@ -184,12 +137,15 @@ export default {
})
this.viewTitle = '【新增】回款返利'
},
+ adjustmentMoneyInput() {
+ this.formobj.adjustmentMoney = Math.round((parseFloat(this.formobj.uploadMoney !== '' ? this.formobj.uploadMoney : 0) - parseFloat(this.formobj.estimateRebate)) * 100) / 100
+ },
// 明细表添加一行数据
handleRebate() {
if (this.formobj.scmCollectionRebateVehs.length !== 0) {
for (var i = 0; i < this.formobj.scmCollectionRebateVehs.length; i++) {
this.formobj.scmCollectionRebateVehs[i].uploadMoney = Math.round((parseFloat(this.formobj.scmCollectionRebateVehs[i].estimateRebate) / parseFloat(this.formobj.estimateRebate) * parseFloat(this.formobj.uploadMoney)) * 100) / 100
- this.formobj.scmCollectionRebateVehs[i].adjustmentMoney = parseFloat(this.formobj.scmCollectionRebateVehs[i].uploadMoney) - parseFloat(this.formobj.scmCollectionRebateVehs[i].estimateRebate)
+ this.formobj.scmCollectionRebateVehs[i].adjustmentMoney = Math.round((parseFloat(this.formobj.scmCollectionRebateVehs[i].uploadMoney) - parseFloat(this.formobj.scmCollectionRebateVehs[i].estimateRebate)) * 100) / 100
}
}
},
@@ -200,11 +156,7 @@ export default {
req.save(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
- this.$message({
- showClose: true,
- type: 'success',
- message: resp.msg
- })
+ this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
}
}).catch(() => {
@@ -219,21 +171,7 @@ export default {
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
// 表单数据
- this.formobj = {
- rebateTypeKey: '',
- rebateTypeValue: '',
- rebateName: '',
- palceGenDate: '',
- calculationModeKey: '',
- calculationModeValue: '',
- calculationStandard: '',
- sid: '',
- createOrgSid: '',
- createOrgName: '',
- useOrgSid: '',
- useOrgName: '',
- scmCollectionRebateVehs: []
- }
+ this.formobj = {}
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
@@ -241,12 +179,25 @@ export default {
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedInfo.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedInfo.vue
index 2f876302b0..9d1451857e 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedInfo.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/collectionrebatetobecheckedInfo.vue
@@ -14,98 +14,64 @@
回款返利核对
-
+
-
- 回款方式
+
+ 回款方式
+ {{ formobj.collectionTypeValue }}
-
-
- {{ formobj.collectionTypeValue }}
-
+
+ 回款日期
+ {{ formobj.collectionDate }}
-
- 回款金额
-
-
- {{ formobj.collectionMoney }}
-
-
- 回款日期
-
-
- {{ formobj.collectionDate }}
+
+ 回款金额
+ {{ formobj.collectionMoney }}
-
- 预计返利
-
-
- {{ formobj.estimateRebate }}
-
-
- 上传金额
+
+ 返利类型
+ {{ formobj.rebateTypeValue }}
-
- {{ formobj.uploadMoney }}
+
+ 返利名称
+ {{ formobj.rebateName }}
-
- 上传日期
-
-
- {{ formobj.uploadDate }}
+
+ 预计返利
+ {{ formobj.estimateRebate }}
-
- 调整金额
+
+ 上传日期
+ {{ formobj.uploadDate }}
-
- {{ formobj.adjustmentMoney }}
+
+ 上传金额
+ {{ formobj.uploadMoney }}
-
- 调整说明
+
+ 调整金额
+ {{ formobj.adjustmentMoney }}
-
- {{ formobj.remarks }}
+
+
+
+ 调整说明
+
-
+ 车辆回款返利列表
-
-
-
- {{ scope.row.carModelName }}
-
-
-
-
- {{ scope.row.vinNo }}
-
-
-
-
- {{ scope.row.costPrice }}
-
-
-
-
- {{ scope.row.estimateRebate }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
+
+
+
+
+
+
+
@@ -127,22 +93,7 @@ export default {
viewState: 1,
rebateType_list: [], // 返利类型
// 表单数据
- formobj: {
- sid: '',
- collectionTypeKey: '',
- collectionTypeValue: '',
- manufaSaleChannel: '',
- collectionMoney: '',
- collectionDate: '',
- freight: '',
- calculationStandard: '',
- estimateRebate: '',
- useOrgSid: '',
- useOrgName: '',
- createOrgName: '',
- createOrgSid: '',
- scmCollectionRebateVehs: []
- },
+ formobj: {},
rules: {},
submitdisabled: false
}
@@ -161,24 +112,9 @@ export default {
},
// 返回(===既判断)
- handleReturn(isreload) {
- if (isreload === 'true') this.$emit('reloadlist')
+ handleReturn() {
// 表单数据
- this.formobj = {
- rebateTypeKey: '',
- rebateTypeValue: '',
- rebateName: '',
- palceGenDate: '',
- calculationModeKey: '',
- calculationModeValue: '',
- calculationStandard: '',
- sid: '',
- createOrgSid: '',
- createOrgName: '',
- useOrgSid: '',
- useOrgName: '',
- scmCollectionRebateVehs: []
- }
+ this.formobj = {}
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
@@ -186,5 +122,11 @@ export default {
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiAdd.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiAdd.vue
index 10b4208223..ae139b2eb8 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiAdd.vue
@@ -17,67 +17,26 @@
-
-
-
- {{ scope.row.brandName }}
-
-
-
-
- {{ scope.row.collectionTypeValue }}
-
-
-
-
- {{ scope.row.manufaBankAccount }}
-
-
-
-
- {{ scope.row.collectionMoney }}
-
-
-
-
- {{ scope.row.freight }}
-
-
-
-
- {{ scope.row.collectionDate }}
-
-
-
-
- {{ scope.row.calculationStandard }}
-
-
-
-
- {{ scope.row.estimateRebate }}
-
-
-
-
- {{ scope.row.withholdingDate.substring(0, scope.row.withholdingDate.length - 9) }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.uploadDate }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -97,8 +56,8 @@ export default {
index: 0,
tableKey: 0,
viewState: 1,
- collectionTypeValue: '',
sids: [],
+ scmCollectionrebateCheckapplydetailVos: [],
// 表单数据
list: [],
rules: {},
@@ -114,26 +73,24 @@ export default {
this.sids = aa
console.log('sids', this.sids)
},
- showInfo(row) {
+ showInfo(row, value) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.viewTitle = '回款返利核对审核申请明细'
- this.collectionTypeValue = row.collectionTypeValue
console.log('编辑回显', row)
- req.collectionRebateWithDetails(row.collectionRebateSids).then((resp) => {
- this.list = resp.data
+ req.collectionRebateCheckDetails(row.collectionRebateSids).then((resp) => {
+ if (resp.success) {
+ this.list = resp.data
+ this.scmCollectionrebateCheckapplydetailVos = value
+ }
}).catch((e) => {
this.list = []
})
},
handleDelete() {
if (this.sids.length === 0) {
- this.$message({
- showClose: true,
- type: 'error',
- message: '请选择至少一条记录进行删除操作'
- })
+ this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
for (var i = 0; i < this.list.length; i++) {
@@ -143,25 +100,17 @@ export default {
}
}
}
+ for (var l = 0; l < this.scmCollectionrebateCheckapplydetailVos.length; l++) {
+ for (var p = 0; p < this.sids.length; p++) {
+ if (this.scmCollectionrebateCheckapplydetailVos[l].sid === this.sids[p]) {
+ this.scmCollectionrebateCheckapplydetailVos.splice(l, 1)
+ }
+ }
+ }
},
// 返回(===既判断)
handleReturn() {
- // 表单数据
- const data_list = []
- for (var i = 0; i < this.list.length; i++) {
- data_list.push({
- sid: this.list[i].sid,
- collectionTypeValue: this.list[i].collectionTypeValue,
- collectionTypeKey: this.list[i].collectionTypeKey,
- collectionMoney: this.list[i].collectionMoney,
- estimateRebate: this.list[i].estimateRebate,
- brandName: this.list[i].brandName,
- brandSid: this.list[i].brandSid,
- uploadMoney: this.list[i].uploadMoney,
- adjustmentMoney: this.list[i].adjustmentMoney
- })
- }
- this.$emit('backAdd', data_list, this.collectionTypeValue)
+ this.$emit('backAdd', this.scmCollectionrebateCheckapplydetailVos)
}
}
}
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiInfo.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiInfo.vue
index fb5f02eff1..88b6175ff2 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiInfo.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/heduishenpiInfo.vue
@@ -16,66 +16,25 @@
-
-
- {{ scope.row.brandName }}
-
-
-
-
- {{ scope.row.collectionTypeValue }}
-
-
-
-
- {{ scope.row.manufaBankAccount }}
-
-
-
-
- {{ scope.row.collectionMoney }}
-
-
-
-
- {{ scope.row.freight }}
-
-
-
-
- {{ scope.row.collectionDate }}
-
-
-
-
- {{ scope.row.calculationStandard }}
-
-
-
-
- {{ scope.row.estimateRebate }}
-
-
-
-
- {{ scope.row.withholdingDate.substring(0, scope.row.withholdingDate.length - 9) }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.uploadDate }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -95,7 +54,6 @@ export default {
index: 0,
tableKey: 0,
viewState: 1,
- sids: [],
// 表单数据
list: [],
rules: {},
@@ -109,8 +67,10 @@ export default {
})
this.viewTitle = '回款返利核对审核申请明细'
console.log('编辑回显', row)
- req.collectionRebateWithDetails(row.collectionRebateSids).then((resp) => {
- this.list = resp.data
+ req.collectionRebateCheckDetails(row.collectionRebateSids).then((resp) => {
+ if (resp.success) {
+ this.list = resp.data
+ }
}).catch((e) => {
this.list = []
})
diff --git a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/yiheduihiukuanfanli.vue b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/yiheduihiukuanfanli.vue
index f97e5d3eb9..5048b5694c 100644
--- a/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/yiheduihiukuanfanli.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/manufacturerrebates/huikuanhedui/relation/yiheduihiukuanfanli.vue
@@ -2,75 +2,34 @@