From ff23b285dbff8da529dc321647f954e2c3915bcc Mon Sep 17 00:00:00 2001 From: qiuxiang <394405259@qq.com> Date: Wed, 30 Sep 2026 10:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=8D=E8=8F=9C=E6=98=8E=E7=BB=86=E8=A1=A8?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=AD=9B=E9=80=89=E6=94=B9=E4=B8=BA=E5=8F=AF?= =?UTF-8?q?=E7=94=A8=E6=97=A5=E6=9C=9F=E5=8C=BA=E9=97=B4=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来的两个原生 date 输入只像一个按钮:新增点击整块输入框即打开日历(showPicker)、选完日期立即按当前条件查询、开始/结束日期各自可一键清除,并补充近7天/本月/上月/全部日期快捷区间;补用例断言这些控件存在。 --- .../planting-details.blade.php | 146 +++++++++++++++++- .../Business/PlantingDetailsPageTest.php | 8 + 2 files changed, 152 insertions(+), 2 deletions(-) diff --git a/resources/views/business/pages/billing-transactions/planting-details.blade.php b/resources/views/business/pages/billing-transactions/planting-details.blade.php index 674be9d5..50e9c2eb 100644 --- a/resources/views/business/pages/billing-transactions/planting-details.blade.php +++ b/resources/views/business/pages/billing-transactions/planting-details.blade.php @@ -35,6 +35,64 @@ color: var(--vip-content-muted, #595959); font-size: 0.75rem; } + + .planting-date-control { + display: flex; + align-items: stretch; + } + + .planting-date-control input { + border-radius: 0.375rem 0 0 0.375rem; + cursor: pointer; + } + + .planting-date-clear { + display: inline-flex; + width: 2.125rem; + align-items: center; + justify-content: center; + border: 1px solid var(--vip-border, #d8d2c7); + border-left: 0; + border-radius: 0 0.375rem 0.375rem 0; + background: #fff; + color: var(--vip-content-muted, #595959); + cursor: pointer; + } + + .planting-date-clear:hover { + border-color: var(--vip-content-accent-dark, #856632); + color: var(--vip-content-accent-dark, #856632); + } + + .planting-date-sep { + align-self: flex-end; + padding-bottom: 0.6rem; + color: var(--vip-content-muted, #595959); + } + + .planting-range-buttons { + display: flex; + flex-wrap: wrap; + gap: 0.375rem; + align-self: flex-end; + } + + .planting-range-buttons button { + height: 2.125rem; + padding: 0 0.625rem; + border: 1px solid var(--vip-border, #d8d2c7); + border-radius: 0.375rem; + background: #fff; + color: var(--vip-content-ink, #171717); + font: inherit; + font-size: 0.75rem; + cursor: pointer; + } + + .planting-range-buttons button:hover { + border-color: var(--vip-content-accent-dark, #856632); + color: var(--vip-content-accent-dark, #856632); + }