diff --git a/inventory-check.html b/inventory-check.html index 5e0fc29..0398d8d 100644 --- a/inventory-check.html +++ b/inventory-check.html @@ -236,6 +236,163 @@ .log-end { color: #ce9178; } + + .btn-pos { + background: #722ed1; + color: white; + } + .btn-pos:hover:not(:disabled) { + background: #9254de; + } + .btn-pos:disabled { + background: #b37feb; + } + .btn-update-batch { + background: #fa8c16; + color: white; + } + .btn-update-batch:hover:not(:disabled) { + background: #ffa940; + } + .btn-update-batch:disabled { + background: #ffd591; + } + .switch-right { + display: flex; + align-items: center; + gap: 16px; + } + .batch-number { + font-size: 14px; + color: #333; + } + .batch-number b { + color: #fa8c16; + font-family: 'Courier New', monospace; + } + + /* 位置设置弹框 */ + .pos-overlay { + position: fixed; + top: 0; left: 0; right: 0; bottom: 0; + background: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + } + .pos-modal { + background: #fff; + border-radius: 8px; + width: 90%; + max-width: 720px; + max-height: 90vh; + overflow: auto; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); + } + .pos-header { + padding: 15px 20px; + font-size: 18px; + font-weight: 600; + border-bottom: 1px solid #eee; + } + .pos-body { + padding: 20px; + } + .pos-field { + margin-bottom: 15px; + } + .pos-row { + display: flex; + gap: 12px; + } + .pos-row .pos-field { + flex: 1; + margin-bottom: 15px; + } + .pos-field label { + display: block; + margin-bottom: 6px; + color: #555; + } + .pos-field input, .pos-field select { + width: 100%; + padding: 8px 10px; + border: 1px solid #ddd; + border-radius: 4px; + box-sizing: border-box; + } + .pos-grid-tools { + margin: 10px 0; + display: flex; + align-items: center; + gap: 12px; + flex-wrap: wrap; + } + .pos-grid-tools button { + padding: 6px 14px; + border: none; + background: #1890ff; + color: #fff; + border-radius: 4px; + cursor: pointer; + } + .pos-grid-tools .btn-pos-clear { + background: #fa8c16; + } + .pos-grid-tools .btn-pos-clear:hover { + background: #ffa940; + } + .pos-hint { + color: #999; + font-size: 12px; + } + .grid-wrap { + overflow: auto; + max-height: 360px; + } + .grid-table { + border-collapse: collapse; + } + .grid-table th, .grid-table td { + border: 1px solid #ddd; + text-align: center; + padding: 0; + } + .grid-table .cell { + width: 30px; + height: 30px; + cursor: pointer; + background: #fafafa; + } + .grid-table .cell:hover { + background: #e6f7ff; + } + .grid-table .cell.selected { + background: #1890ff; + } + .grid-table .row-head, .grid-table .col-head { + background: #f0f0f0; + cursor: pointer; + padding: 4px 8px; + font-weight: 500; + user-select: none; + white-space: nowrap; + } + .grid-table .row-head:hover, .grid-table .col-head:hover { + background: #d9d9d9; + } + .grid-table .corner { + background: #f0f0f0; + } + .btn-pos-close { + padding: 8px 20px; + border: none; + background: #52c41a; + color: #fff; + border-radius: 4px; + cursor: pointer; + }
@@ -246,7 +403,7 @@