优化计算
This commit is contained in:
@@ -573,9 +573,9 @@ function handleBillSelectionChange(selectionArr) {
|
|||||||
if (selection.length > 0) {
|
if (selection.length > 0) {
|
||||||
for (let i = 0; i < selection.length; i++) {
|
for (let i = 0; i < selection.length; i++) {
|
||||||
delieryData.value.deliveryTon +=
|
delieryData.value.deliveryTon +=
|
||||||
Number(selection[i].weightKg) * 1000 * selection[i].realQty;
|
((Number(selection[i].weightKg) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
delieryData.value.goodsSize +=
|
delieryData.value.goodsSize +=
|
||||||
Number(selection[i].volumeM3) * 1000 * selection[i].realQty;
|
((Number(selection[i].volumeM3) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
// selection[i].rkInfoId = selection[i].id
|
// selection[i].rkInfoId = selection[i].id
|
||||||
selection[i].rkRecordId = selection[i].id;
|
selection[i].rkRecordId = selection[i].id;
|
||||||
}
|
}
|
||||||
@@ -617,9 +617,9 @@ function handleBillSelectionChange(selectionArr) {
|
|||||||
if (selection.length > 0) {
|
if (selection.length > 0) {
|
||||||
for (let i = 0; i < selection.length; i++) {
|
for (let i = 0; i < selection.length; i++) {
|
||||||
delieryData.value.deliveryTon +=
|
delieryData.value.deliveryTon +=
|
||||||
Number(selection[i].weightKg) * 1000 * selection[i].realQty;
|
((Number(selection[i].weightKg) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
delieryData.value.goodsSize +=
|
delieryData.value.goodsSize +=
|
||||||
Number(selection[i].volumeM3) * 1000 * selection[i].realQty;
|
((Number(selection[i].volumeM3) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
// selection[i].rkInfoId = selection[i].id
|
// selection[i].rkInfoId = selection[i].id
|
||||||
selection[i].rkRecordId = selection[i].id;
|
selection[i].rkRecordId = selection[i].id;
|
||||||
}
|
}
|
||||||
@@ -658,9 +658,9 @@ function handleSelectionChange(selection) {
|
|||||||
if (selection.length > 0) {
|
if (selection.length > 0) {
|
||||||
for (let i = 0; i < selection.length; i++) {
|
for (let i = 0; i < selection.length; i++) {
|
||||||
delieryData.value.deliveryTon +=
|
delieryData.value.deliveryTon +=
|
||||||
Number(selection[i].weightKg) * 1000 * selection[i].realQty;
|
((Number(selection[i].weightKg) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
delieryData.value.goodsSize +=
|
delieryData.value.goodsSize +=
|
||||||
Number(selection[i].volumeM3) * 1000 * selection[i].realQty;
|
((Number(selection[i].volumeM3) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
// selection[i].rkInfoId = selection[i].id
|
// selection[i].rkInfoId = selection[i].id
|
||||||
selection[i].rkRecordId = selection[i].id;
|
selection[i].rkRecordId = selection[i].id;
|
||||||
}
|
}
|
||||||
@@ -699,9 +699,9 @@ function handleSelectionChange(selection) {
|
|||||||
if (selection.length > 0) {
|
if (selection.length > 0) {
|
||||||
for (let i = 0; i < selection.length; i++) {
|
for (let i = 0; i < selection.length; i++) {
|
||||||
delieryData.value.deliveryTon +=
|
delieryData.value.deliveryTon +=
|
||||||
Number(selection[i].weightKg) * 1000 * selection[i].realQty;
|
((Number(selection[i].weightKg) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
delieryData.value.goodsSize +=
|
delieryData.value.goodsSize +=
|
||||||
Number(selection[i].volumeM3) * 1000 * selection[i].realQty;
|
((Number(selection[i].volumeM3) * 1000) * (selection[i].realQty * 1000)) / 1000;
|
||||||
// selection[i].rkInfoId = selection[i].id
|
// selection[i].rkInfoId = selection[i].id
|
||||||
selection[i].rkRecordId = selection[i].id;
|
selection[i].rkRecordId = selection[i].id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user