|
@ -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: '保存成功' }) |
|
|