Merge remote-tracking branch 'origin/main'

product
chuang 2 years ago
commit e57a850f52

@ -846,21 +846,21 @@
});
this.dataForm.purchaseorder_item0List.forEach((item, index)=>{
if(row.vehicleId == item.vehicleId){
item.amount = parseFloat(item.settlement) * parseFloat(item.price);//
item.notAmount = item.amount * (100 - rate) / 100;//
item.amount = this.jnpf.floatMul(item.settlement, item.price);//
item.notAmount = this.jnpf.floatDiv(this.jnpf.floatMul(item.amount, this.jnpf.floatSub(100, rate)), 100);//
}
if(item.advance == '1'){//
advanceAmount = advanceAmount + item.amount;//
advanceAmount = this.jnpf.floatAdd(advanceAmount, item.amount);//
}
settlement = settlement + parseFloat(item.settlement);//
amount = amount + item.amount;//
notAmount = notAmount + parseFloat(item.notAmount);//
settlement = this.jnpf.floatAdd(settlement, item.settlement);//
amount = this.jnpf.floatAdd(amount, item.amount);//
notAmount = this.jnpf.floatAdd(notAmount, item.notAmount);//
});
this.dataForm.advanceAmount = advanceAmount;
this.dataForm.num = settlement;
this.dataForm.amount = amount;
this.dataForm.notAmount = notAmount;
this.dataForm.rate = amount - notAmount;
this.dataForm.rate = this.jnpf.floatSub(amount, notAmount);
},
changeContract(a, b) {
this.dataForm.supplierId = b.code;
@ -924,11 +924,11 @@
var notAmount = 0;
itemArr.forEach((item, index)=>{
if(item.advance == '1'){//
advanceAmount = advanceAmount + item.amount;//
advanceAmount = this.jnpf.floatAdd(advanceAmount, item.amount);//
}
settlement = settlement + item.settlement;//
amount = amount + item.amount;//
notAmount = notAmount + item.notAmount;//
settlement = this.jnpf.floatAdd(settlement, item.settlement);//
amount = this.jnpf.floatAdd(amount, item.amount);//
notAmount = this.jnpf.floatAdd(notAmount, item.notAmount);//
item.poundlistId = item.id;
item.id = '';
});
@ -936,7 +936,7 @@
this.dataForm.num = settlement;
this.dataForm.amount = amount;
this.dataForm.notAmount = notAmount;
this.dataForm.rate = amount - notAmount;
this.dataForm.rate = this.jnpf.floatSub(amount, notAmount);
this.dataForm.purchaseorder_item0List = itemArr;
let param = {
param : 'cgdj'

@ -572,14 +572,14 @@
var statusFlag = true;
for(var i=0;i<this.multipleSelectionItem.length;i++){
supplierIdArr.push(this.multipleSelectionItem[i].supplierId);
if(this.multipleSelectionItem[i].status != '2' || this.multipleSelectionItem[i].isPayment == '1'){
if(this.multipleSelectionItem[i].isPayment == '1'){
statusFlag = false;
}
}
if(!statusFlag){
this.$message({
type: 'error',
message: '存在订单未付款或请先入库',
message: '存在订单未付款',
duration: 1500
})
return

Loading…
Cancel
Save