fix: 多件档口入库码逐件回写 (#250)
This commit is contained in:
@@ -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; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user