Commit 4c170e55 authored by youjie's avatar youjie

no message

parent 27163d0c
......@@ -1432,24 +1432,33 @@
this.Error(`成本月结数据不能为空!`)
return
}
// 台湾提成汇率 验证总金额是否一致
if (this.orderObj && this.orderObj.Money && (this.orderObj.Rate || this.orderObj.isVerifyMoney)) {
// 台湾提成汇率 验证原币总金额是否一致
if (this.orderObj && this.orderObj.Money && this.orderObj.Rate) {
let yballPrice = 0
let totalAmount
this.msg && this.msg.detailList && this.msg.detailList.forEach((item, i) => {
yballPrice += (Number(item.UnitPrice)*100)
})
this.yballPriceTo = yballPrice/100
if (this.orderObj.Money != this.yballPriceTo) {
totalAmount = this.$commonUtils.addCommas(Math.round(this.orderObj.Money * 100) / 100)
if (totalAmount != this.yballPriceTo) {
this.Error(`原币总金额需等于${this.orderObj.Money}!`)
return
}
}
if (this.commissionObj) {
this.msg.OtherType = this.commissionObj.OtherType ? this.commissionObj.OtherType : 0;
this.msg.ReFinanceId = this.commissionObj.PeroidsId ? this.commissionObj.PeroidsId : 0;
this.msg.RelevanceFrId = this.commissionObj.EmpIds ? this.commissionObj.EmpIds : 0;
let totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount * 100) / 100)
//验证总金额是否一致
if (this.commissionObj ||(this.orderObj&& this.orderObj.isVerifyMoney)) {
let totalAmount
if(this.commissionObj){
this.msg.OtherType = this.commissionObj.OtherType ? this.commissionObj.OtherType : 0;
this.msg.ReFinanceId = this.commissionObj.PeroidsId ? this.commissionObj.PeroidsId : 0;
this.msg.RelevanceFrId = this.commissionObj.EmpIds ? this.commissionObj.EmpIds : 0;
totalAmount = this.$commonUtils.addCommas(Math.round(this.commissionObj.totalAmount * 100) / 100)
}
if (this.orderObj && this.orderObj.Money && this.orderObj.isVerifyMoney) {
totalAmount = this.$commonUtils.addCommas(Math.round(this.orderObj.Money * 100) / 100)
}
if (this.allPriceTo != totalAmount) {
this.Error(`实付金额必须等于${totalAmount}!`)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment