feat: 档口入库码后台批量回写 (#246)

This commit is contained in:
chengma
2026-08-15 17:08:17 +08:00
parent 6b30594f4c
commit f8f22a15c7
21 changed files with 708 additions and 134 deletions
+12
View File
@@ -618,6 +618,7 @@ input.wide { width: 100%; }
.inner-code-status-ready,
.inner-code-status-updated,
.inner-code-status-already_filled { color: #1a7f37; background: #f0fff4; }
.inner-code-status-queued,
.inner-code-status-applying { color: #0969da; background: #eef6ff; }
.inner-code-status-skipped,
.inner-code-status-needs_check { color: #7a4b00; background: #fff8c5; }
@@ -653,6 +654,17 @@ input.wide { width: 100%; }
background: #f0fff4;
box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}
.inner-code-batch-progress {
flex: 0 0 auto;
margin: 0 0 8px;
padding: 10px 12px;
border: 1px solid #b6d4fe;
border-radius: 4px;
background: #f4f8ff;
}
.inner-code-batch-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inner-code-batch-progress progress { width: 100%; height: 14px; margin: 8px 0 4px; }
.inner-code-batch-progress p { margin: 0; color: #3d4852; }
.inner-code-table-wrap { flex: 1 1 auto; min-height: 180px; overflow: auto; scrollbar-gutter: stable; }
.inner-code-table { min-width: 1500px; }
.inner-code-table th { position: sticky; top: 0; z-index: 1; }
+2 -2
View File
@@ -23,7 +23,7 @@
"/shops": [],
"/tasks": ["type", "status", "creator", "q", "page", "page_size"],
"/clients": ["name", "page", "page_size"],
"/inner-codes": ["date", "status", "q", "page", "page_size"],
"/inner-codes": ["date", "status", "q", "page", "page_size", "apply_batch_id"],
"/users": ["q", "status", "page", "page_size"]
};
var MODULE_STATE_PREFIX = "cmautobuy:module-state:";
@@ -488,7 +488,7 @@
if (button) {
button.disabled = true;
button.setAttribute("aria-busy", "true");
button.textContent = "回写中…";
button.textContent = "提交中…";
}
});
var deleteForm = document.getElementById("inner-code-delete-form");