Browse Source

完善

master
yunuo970428 4 months ago
parent
commit
859c05f42f
  1. 7
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionAdd.vue
  2. 2
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiEdit.vue

7
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionAdd.vue

@ -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) => {

2
anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiEdit.vue

@ -193,7 +193,7 @@ export default {
estimateRebate: e.estimateRebate,
uploadMoney: e.uploadMoney,
disNum: e.disNum,
unitSetAllocationMoney: Math.round((parseFloat(e.uploadMoney) / parseFloat(e.disNum !== '' ? e.disNum : 0)) * 100) / 100
unitSetAllocationMoney: e.disNum === '0' ? '0' : Math.round((parseFloat(e.uploadMoney) / parseFloat(e.disNum)) * 100) / 100
})
})
}

Loading…
Cancel
Save