|
|
|
@ -178,15 +178,22 @@ export default class VirtualSummary extends BasePage {
|
|
|
|
|
//选中其中某一行数据
|
|
|
|
|
ClickHandover(e: any) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (e.data.length != this.model.proOrderResultList.length) {
|
|
|
|
|
let index = e.data[e.data.length - 1].index;
|
|
|
|
|
let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount);
|
|
|
|
|
this.model.proOrderResultList[index].hvAmount = num;
|
|
|
|
|
} else {
|
|
|
|
|
this.model.proOrderResultList.forEach((item: any) => {
|
|
|
|
|
let num: any = parseFloat(item.amount) - parseFloat(item.totalMoAmount);
|
|
|
|
|
item.hvAmount = num;
|
|
|
|
|
});
|
|
|
|
|
this.model.proOrderResultList.forEach((item: any) => {
|
|
|
|
|
if (!item.checked) {
|
|
|
|
|
item.hvAmount = 0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (e.data.length != 0) {
|
|
|
|
|
if (e.data.length != this.model.proOrderResultList.length) {
|
|
|
|
|
let index = e.data[e.data.length - 1].index;
|
|
|
|
|
let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount);
|
|
|
|
|
this.model.proOrderResultList[index].hvAmount = num;
|
|
|
|
|
} else {
|
|
|
|
|
this.model.proOrderResultList.forEach((item: any) => {
|
|
|
|
|
let num: any = parseFloat(item.amount) - parseFloat(item.totalMoAmount);
|
|
|
|
|
item.hvAmount = num;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onSubmit() {
|
|
|
|
|