Browse Source

完善单车返利核对、专项返利核对

master
yunuo970428 4 days ago
parent
commit
fc5fad3d2b
  1. 16
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue
  2. 16
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue

16
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue

@ -749,14 +749,14 @@ export default {
this.formobj.adjustmentMoney = Math.round((parseFloat(this.formobj.firstRebate !== '' ? this.formobj.firstRebate : 0) + parseFloat(this.formobj.secondRebate !== '' ? this.formobj.secondRebate : 0) - parseFloat(this.formobj.surplusRebate !== '' ? this.formobj.surplusRebate : 0)) * 100) / 100 this.formobj.adjustmentMoney = Math.round((parseFloat(this.formobj.firstRebate !== '' ? this.formobj.firstRebate : 0) + parseFloat(this.formobj.secondRebate !== '' ? this.formobj.secondRebate : 0) - parseFloat(this.formobj.surplusRebate !== '' ? this.formobj.surplusRebate : 0)) * 100) / 100
}, },
handleSave() { handleSave() {
if (parseFloat(this.formobj.firstRebate) < 0) { // if (parseFloat(this.formobj.firstRebate) < 0) {
this.$message({ showClose: true, type: 'error', message: '待确定金额分配模块其中含返利为负数,请检查所填写相关费用是否正确' }) // this.$message({ showClose: true, type: 'error', message: '' })
return // return
} // }
if (parseFloat(this.formobj.secondRebate) < 0) { // if (parseFloat(this.formobj.secondRebate) < 0) {
this.$message({ showClose: true, type: 'error', message: '返利二次上传模块其中含返利为负数,请检查所填写相关费用是否正确' }) // this.$message({ showClose: true, type: 'error', message: '' })
return // return
} // }
req.adjustment(this.formobj).then((resp) => { req.adjustment(this.formobj).then((resp) => {
if (resp.success) { if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' }) this.$message({ showClose: true, type: 'success', message: '保存成功' })

16
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue

@ -747,14 +747,14 @@ export default {
this.formobj.adjustmentMoney = Math.round((parseFloat(this.formobj.firstRebate !== '' ? this.formobj.firstRebate : 0) + parseFloat(this.formobj.secondRebate !== '' ? this.formobj.secondRebate : 0) - parseFloat(this.formobj.surplusRebate !== '' ? this.formobj.surplusRebate : 0)) * 100) / 100 this.formobj.adjustmentMoney = Math.round((parseFloat(this.formobj.firstRebate !== '' ? this.formobj.firstRebate : 0) + parseFloat(this.formobj.secondRebate !== '' ? this.formobj.secondRebate : 0) - parseFloat(this.formobj.surplusRebate !== '' ? this.formobj.surplusRebate : 0)) * 100) / 100
}, },
handleSave() { handleSave() {
if (parseFloat(this.formobj.firstRebate) < 0) { // if (parseFloat(this.formobj.firstRebate) < 0) {
this.$message({ showClose: true, type: 'error', message: '待确定金额分配模块其中含返利为负数,请检查所填写相关费用是否正确' }) // this.$message({ showClose: true, type: 'error', message: '' })
return // return
} // }
if (parseFloat(this.formobj.secondRebate) < 0) { // if (parseFloat(this.formobj.secondRebate) < 0) {
this.$message({ showClose: true, type: 'error', message: '返利二次上传模块其中含返利为负数,请检查所填写相关费用是否正确' }) // this.$message({ showClose: true, type: 'error', message: '' })
return // return
} // }
req.adjustment(this.formobj).then((resp) => { req.adjustment(this.formobj).then((resp) => {
if (resp.success) { if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' }) this.$message({ showClose: true, type: 'success', message: '保存成功' })

Loading…
Cancel
Save