|
|
@ -216,15 +216,10 @@ export default { |
|
|
|
estimateRebate: e.estimateRebate, |
|
|
|
uploadMoney: e.uploadMoney, |
|
|
|
disNum: e.disNum, |
|
|
|
unitSetAllocationMoney: '' |
|
|
|
unitSetAllocationMoney: e.disNum === '0' ? '0' : Math.round((parseFloat(e.uploadMoney) / parseFloat(e.disNum)) * 100) / 100 |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
if (this.formobj.scmSpecialrebatedistributedetails.length > 0) { |
|
|
|
this.formobj.scmSpecialrebatedistributedetails.forEach((k) => { |
|
|
|
k.unitSetAllocationMoney = Math.round((parseFloat(k.uploadMoney) / parseFloat(k.disNum)) * 100) / 100 |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
saveOrUpdate() { |
|
|
|
this.$refs['form_obj'].validate((valid) => { |
|
|
|