From 0c994d2465dcabebd29d7d2bc9d6c7bcf08e7009 Mon Sep 17 00:00:00 2001 From: Codex Yueyang Date: Wed, 30 Sep 2026 09:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E7=9B=AE=E6=98=A0=E5=B0=84=E8=A1=A8?= =?UTF-8?q?=EF=BC=9A=E7=AD=9B=E9=80=89=E6=94=B9=E4=B8=BA=E5=8F=AF=E5=A4=9A?= =?UTF-8?q?=E9=80=89=EF=BC=88=E8=B4=A6=E5=8D=95=E9=A1=B9=E7=9B=AE/?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0/=E5=A4=A7=E7=B1=BB/=E6=96=B9=E5=90=91?= =?UTF-8?q?=E5=9F=BA=E5=87=86=EF=BC=89=EF=BC=8C=E5=8E=BB=E6=8E=89=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E9=A1=B9=E7=9B=AE=E6=90=9C=E7=B4=A2=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../financial-rules/account-mapping.blade.php | 460 +++++++++++++----- 1 file changed, 327 insertions(+), 133 deletions(-) diff --git a/resources/views/business/pages/financial-rules/account-mapping.blade.php b/resources/views/business/pages/financial-rules/account-mapping.blade.php index 452a120e..237488b4 100644 --- a/resources/views/business/pages/financial-rules/account-mapping.blade.php +++ b/resources/views/business/pages/financial-rules/account-mapping.blade.php @@ -216,41 +216,115 @@ .am-modal__close { border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: #8a8377; } /* 操作记录 */ - /* 账单项目:可打字过滤 + 点选(不用原生 datalist,行为更可控) */ - .am-combo { position: relative; } - .am-combo__row { display: flex; align-items: center; gap: 0.35rem; } - .am-combo__row input { flex: 1 1 auto; min-width: 0; } - .am-combo__row .am-btn-mini { flex: 0 0 auto; white-space: nowrap; } - .am-combo__list { + /* 多选筛选(账单项目 / 平台 / 大类 / 方向基准):点按钮展开复选列表,可同时选多个 */ + .am-ms { position: relative; } + .am-ms__box { position: relative; display: block; } + .am-ms__btn { + display: flex; + width: 100%; + height: 2.125rem; + align-items: center; + justify-content: space-between; + gap: 0.4rem; + padding: 0 0.625rem; + border: 1px solid #d8d2c7; + border-radius: 0.5rem; + background: #fff; + color: #171717; + font: inherit; + font-size: 0.8125rem; + text-align: left; + cursor: pointer; + } + .am-ms__btn:hover { border-color: #c4b79f; } + .am-ms__btn[aria-expanded="true"] { border-color: #856632; box-shadow: 0 0 0 3px rgba(133, 102, 50, 0.2); } + .am-ms__btn--on { font-weight: 600; color: #6f5427; } + .am-ms__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } + .am-ms__caret { flex: 0 0 auto; font-size: 0.625rem; color: #8a8377; } + .am-ms__panel { position: absolute; - top: 100%; + top: calc(100% + 0.3rem); left: 0; - right: 0; - z-index: 60; - margin-top: 0.3rem; + z-index: 70; + min-width: 12rem; max-height: 16rem; overflow: auto; - padding: 0.3rem; + padding: 0.35rem; background: #fffdf8; border: 1px solid #e4dccd; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14); } - .am-combo__list[hidden] { display: none; } - .am-combo__item { - display: block; + .am-ms__panel[hidden] { display: none; } + .am-ms__empty { padding: 0.4rem 0.5rem; font-size: 0.75rem; color: #8a8377; } + .am-ms__search { width: 100%; - text-align: left; - border: 0; - background: transparent; - padding: 0.35rem 0.5rem; - font-size: 0.8125rem; + height: 1.9rem; + min-width: 0; + padding: 0 0.5rem; + border: 1px solid #ddd5c7; + border-radius: 0.4rem; + background: #fff; color: #3d3a35; + font: inherit; + font-size: 0.8125rem; + outline: none; + } + .am-ms__search:focus { border-color: #856632; box-shadow: 0 0 0 3px rgba(133, 102, 50, 0.2); } + .am-ms__opts { display: block; } + .am-ms__head { display: flex; gap: 0.35rem; padding: 0.15rem 0.15rem 0.4rem; margin-bottom: 0.25rem; border-bottom: 1px solid #efe8db; } + .am-ms__head button { + flex: 1 1 auto; + height: auto; + padding: 0.2rem 0.35rem; + border: 1px solid #e4dccd; border-radius: 6px; + background: #fff; + color: #3d3a35; + font: inherit; + font-size: 0.6875rem; cursor: pointer; } - .am-combo__item:hover { background: #f6f2e9; } - .am-combo__empty { padding: 0.4rem 0.5rem; font-size: 0.75rem; color: #8a8377; } + .am-ms__head button:hover { background: #f6f2e9; } + .am-ms__opt { + display: flex; + align-items: center; + gap: 0.4rem; + padding: 0.3rem 0.35rem; + border-radius: 6px; + font-size: 0.8125rem; + color: #3d3a35; + cursor: pointer; + } + .am-ms__opt:hover { background: #f6f2e9; } + .am-ms__panel .am-ms__opt input { + position: relative; + flex: 0 0 auto; + width: 0.95rem; + height: 0.95rem; + min-width: 0; + margin: 0; + padding: 0; + border: 1px solid #cfc6b4; + border-radius: 4px; + background: #fff; + appearance: none; + -webkit-appearance: none; + cursor: pointer; + } + .am-ms__panel .am-ms__opt input:checked { border-color: #856632; background: #856632; } + .am-ms__panel .am-ms__opt input:checked::after { + content: '✓'; + position: absolute; + inset: 0; + display: flex; + align-items: center; + justify-content: center; + color: #fff; + font-size: 0.6875rem; + line-height: 1; + } + .am-ms__panel .am-ms__opt input:focus-visible { box-shadow: 0 0 0 3px rgba(133, 102, 50, 0.25); } .am-hist-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; } .am-hist-tools select, @@ -353,40 +427,42 @@ 搜索 -