Merge remote-tracking branch 'origin/main'

product
chuang 2 years ago
commit e57a850f52

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

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

Loading…
Cancel
Save