优化计算

This commit is contained in:
2026-03-19 15:46:30 +08:00
parent 74b927af66
commit 20404d715a

View File

@@ -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;
} }