fix: 多件档口入库码逐件回写 (#250)

This commit is contained in:
chengma
2026-08-18 15:18:35 +08:00
parent d2acbd821c
commit b8f49fe4bb
14 changed files with 547 additions and 111 deletions
+10
View File
@@ -435,12 +435,22 @@
var replacements = applySelected.filter(function (box) {
return box.getAttribute("data-inner-code-old-value") === "1";
}).length;
var codeTotal = applySelected.reduce(function (total, box) {
return total + Number(box.getAttribute("data-inner-code-code-count") || 0);
}, 0);
var addTotal = applySelected.reduce(function (total, box) {
return total + Number(box.getAttribute("data-inner-code-add-count") || 0);
}, 0);
document.querySelectorAll("[data-inner-code-match-count]")
.forEach(function (node) { node.textContent = matchSelected.length; });
document.querySelectorAll("[data-inner-code-selected-count], [data-inner-code-confirm-count]")
.forEach(function (node) { node.textContent = applySelected.length; });
document.querySelectorAll("[data-inner-code-replace-count]")
.forEach(function (node) { node.textContent = replacements; });
document.querySelectorAll("[data-inner-code-code-total]")
.forEach(function (node) { node.textContent = codeTotal; });
document.querySelectorAll("[data-inner-code-add-total]")
.forEach(function (node) { node.textContent = addTotal; });
document.querySelectorAll("[data-inner-code-delete-count]")
.forEach(function (node) { node.textContent = deleteSelected.length; });
}