完善个人每日对账并支持售后订单修改

This commit is contained in:
summer committed 2026-10-28 00:22:04 +08:00
1 parent aa7f7cad27
commit 5e1e4c600c
15 files changed
+1217 -51

No files matched your search

+6 -3
View File
@@ -58,12 +58,15 @@ input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-
@media(max-width:650px){.report-controls{gap:10px}.report-controls>label:first-child{min-width:150px}.report-controls .check{font-size:12px;margin-top:15px}.report-cards{gap:8px}.report-cards .stat{padding:13px 12px}.report-cards .stat>strong{font-size:22px}.report-cards .stat>small{font-size:11px}.report-primary{gap:0}.report-primary>.panel{padding:17px 14px}.report-scope{font-size:11px}.report-payer-table .report-cost-total{font-size:16px}.report-primary .table-wrap{margin-top:12px}.report-order-net{padding:17px 14px}.report-order-table td{padding:10px 8px}.report-secondary .panel{padding:17px 14px}.report-unsettled table{min-width:620px}}
/* 先按收款人汇总,逐笔收款与退款分别核对。 */
.report-receipts{margin-bottom:20px;min-width:0}.report-receipt-scope{margin:0 0 12px;line-height:1.7}.report-recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.report-recipient{min-width:0;margin:0;padding:20px}.report-recipient h2{font-size:16px;margin:0 0 8px}.report-recipient-total{font-size:30px;line-height:1.4;font-weight:650;color:var(--green);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-recipient-net{display:flex;gap:8px 22px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:8px 0 0;font-variant-numeric:tabular-nums}.report-receipt-detail{margin:16px 0 0;padding-top:13px;border-top:1px solid var(--border);min-width:0}.report-receipt-detail>summary{font-size:13px;color:var(--green)}.report-receipt-detail>summary>.small{font-weight:400;font-size:11px;margin-left:6px;color:var(--muted)}.report-receipt-detail>summary:focus-visible,.report-receipt-detail>.table-wrap:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:3px}.report-receipt-detail>.table-wrap{margin-top:12px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.report-receipt-table{min-width:560px;font-size:12px}.report-receipt-table th,.report-receipt-table td{padding:10px 8px;line-height:1.65}.report-receipt-table th.number{text-align:right}.report-receipt-table td:first-child{min-width:138px}.report-receipt-table td:nth-child(2){min-width:140px;max-width:220px;overflow-wrap:anywhere}.report-receipt-table td:nth-child(3){min-width:150px;max-width:260px;overflow-wrap:anywhere}.report-receipt-table td>.small{font-size:10px;margin-top:3px}.report-receipt-table .link-button{font-size:12px;overflow-wrap:anywhere}.report-receipt-table tfoot td{font-weight:600;background:var(--soft);border-top:1px solid var(--border)}.report-receipt-reversal{background:#faf7ef}.report-receipt-note{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:850px){.report-recipient-grid{grid-template-columns:1fr;gap:14px}}@media(max-width:650px){.report-receipt-scope{font-size:11px}.report-recipient{padding:17px 14px}.report-recipient-total{font-size:27px}.report-recipient-net{gap:6px 17px}.report-receipt-table{min-width:540px}}
.report-receipts{margin-bottom:20px;min-width:0}.report-receipt-scope{margin:0 0 12px;line-height:1.7}.report-recipient-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}.report-recipient{min-width:0;max-width:100%;margin:0;padding:20px}.report-recipient-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px;min-width:0}.report-recipient h2{font-size:16px;margin:0;overflow-wrap:anywhere}.report-recipient-total{font-size:30px;line-height:1.4;font-weight:650;color:var(--green);font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}.report-recipient-net{display:flex;gap:8px 22px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:0;max-width:100%;font-variant-numeric:tabular-nums}.report-recipient-net>span{max-width:100%;overflow-wrap:anywhere}.report-receipt-detail{margin:16px 0 0;padding-top:13px;border-top:1px solid var(--border);min-width:0}.report-receipt-detail>summary{font-size:13px;color:var(--green)}.report-receipt-detail>summary>.small{font-weight:400;font-size:11px;margin-left:6px;color:var(--muted)}.report-receipt-detail>summary:focus-visible,.report-receipt-detail>.table-wrap:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:3px}.report-receipt-detail>.table-wrap{margin-top:12px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.report-receipt-table{width:100%;min-width:0;table-layout:fixed;font-size:12px}.report-receipt-table th,.report-receipt-table td{padding:10px 8px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}.report-receipt-table th:first-child{width:25%}.report-receipt-table th:nth-child(2){width:25%}.report-receipt-table th:nth-child(3){width:28%}.report-receipt-table th:last-child{width:22%}.report-receipt-table th.number{text-align:right}.report-receipt-table td>.small{font-size:10px;margin-top:3px}.report-receipt-table .link-button{font-size:12px;max-width:100%;overflow-wrap:anywhere}.report-receipt-table tfoot td{font-weight:600;background:var(--soft);border-top:1px solid var(--border)}.report-receipt-reversal{background:#faf7ef}.report-receipt-note{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.report-receipt-scope{font-size:11px}.report-recipient{padding:17px 14px}.report-recipient-summary{gap:6px 16px}.report-recipient-total{font-size:27px}.report-recipient-net{gap:6px 17px}.report-receipt-table{font-size:11px}.report-receipt-table th,.report-receipt-table td{padding:9px 5px}}
.report-ownership-equation{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:12px 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-ownership-equation b{font-weight:550;color:var(--ink)}.report-ownership-equation>strong{color:var(--green);font-weight:650}.report-ownership-accounts{display:flex;flex-wrap:wrap;gap:14px 28px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}.report-ownership-account-group{flex:1 1 230px;min-width:0}.report-ownership-account-group h3{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 8px}.report-ownership-account-group ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}.report-ownership-account-group li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px}.report-ownership-account-group li>div{min-width:0;overflow-wrap:anywhere}.report-ownership-account-group li small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:2px}.report-ownership-account-group li>strong{font-size:14px;font-weight:550;max-width:50%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.report-ownership-account-group>p{margin:0}.report-ownership-empty{margin-bottom:0}.report-ownership-empty>p{margin:0}@media(max-width:650px){.report-ownership-equation{gap:6px 9px}.report-ownership-accounts{gap:17px}.report-ownership-account-group{flex-basis:100%}}
.report-business-cost,.report-business-profit,.report-business-settlement{border-top:1px solid var(--border);margin-top:17px;padding-top:15px;min-width:0}.report-business-cost h3,.report-business-profit h3,.report-business-settlement h3{font-size:13px;font-weight:550;margin:0}.report-business-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 18px}.report-business-heading h3 .small{margin-left:9px;font-size:11px;font-weight:400}.report-business-heading>strong{font-size:22px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.report-business-paid{display:flex;flex-wrap:wrap;gap:10px 32px;margin-top:9px;font-size:13px}.report-business-paid>span{min-width:0;overflow-wrap:anywhere}.report-business-paid b{font-size:15px;font-weight:550;margin-left:5px;font-variant-numeric:tabular-nums}.report-business-paid small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.report-business-profit{padding:13px 15px;background:#f1f5ed;border:1px solid #dce5d5;border-radius:7px}.report-business-profit-equation,.report-business-balance-equation{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 10px;font-size:13px;line-height:1.8;font-variant-numeric:tabular-nums;margin:7px 0 0;overflow-wrap:anywhere}.report-business-profit-equation b,.report-business-balance-equation b{font-weight:500}.report-business-profit-equation>strong{font-size:25px;font-weight:650;color:var(--green)}.report-business-profit-equation>strong.danger-text{color:var(--danger)}.report-business-profit-pending{display:block;font-size:22px;font-weight:600;margin-top:8px}.report-business-profit>p.small{margin:7px 0 0}.report-business-difference{font-size:11px;color:var(--muted);line-height:1.8;margin-top:9px}.report-business-difference p{margin:0}.report-business-difference ul{padding-left:17px;margin:5px 0 0}.report-business-dues{display:flex;flex-wrap:wrap;gap:12px 32px;margin-top:9px}.report-business-dues>div{display:flex;align-items:baseline;gap:10px;min-width:0;flex-wrap:wrap}.report-business-dues span{font-size:12px;color:var(--muted)}.report-business-dues strong{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-business-settlement-notice{margin:9px 0 0;line-height:1.7;font-size:11px}.report-business-period{margin:9px 0 0;font-size:11px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.report-business-period p{margin:3px 0 0}.report-business-counterparts{margin:13px 0 0}.report-business-counterparts>summary{font-size:12px;font-weight:500}.report-business-counterparts>section{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.report-business-counterparts h4{font-size:13px;font-weight:550;margin:0 0 6px}.report-business-counterparts p.small{margin:6px 0 0}.report-business-balance-equation{font-size:11px;gap:4px 8px}.report-business-balance-equation strong{font-weight:600}@media(max-width:650px){.report-business-heading{gap:6px 12px}.report-business-paid{gap:9px 18px}.report-business-profit{padding:12px}.report-business-profit-equation{font-size:12px}.report-business-profit-equation>strong{font-size:23px}.report-business-dues{gap:11px 20px}.report-business-dues>div{flex:1 1 175px}.report-business-balance-equation>span{max-width:100%}}
/* 售后只登记实际费用,与销售订单同表查看。 */
#after-sale-dialog{width:min(560px,96vw);padding:26px 28px}#after-sale-title{margin:0 0 9px}#after-sale-dialog>p{margin-bottom:20px;padding-right:24px}#after-sale-form .grid>label:last-child{grid-column:1/-1}#after-sale-form .form-actions{margin-top:22px}.after-sale-identity strong,.after-sale-identity span{display:block;overflow-wrap:anywhere}.after-sale-identity strong{font-size:12px;font-weight:600}.after-sale-identity span{font-size:12px;margin-top:2px}.report-payer-table td>.small{font-size:10px;margin-top:4px}.order-book-table .order-after-sale{background:#faf8f0}.order-after-sale .order-profit{color:var(--danger)}
@media(max-width:650px){#after-sale-dialog{padding:22px 18px}#after-sale-form .form-actions{align-items:flex-start;gap:12px}.report-payer-table td>.small{font-size:10px}}
.after-sale-identity .after-sale-edit-button{display:inline-flex;min-height:34px;margin-top:9px;padding:6px 15px;font-size:13px;border-color:#a7b8a1;color:var(--green);background:#fff}.after-sale-edit-button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#after-sale-edit-form>label{margin-top:15px}#after-sale-edit-form .form-actions{margin-top:20px}.after-sale-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;margin:20px 0}.after-sale-facts dt{font-size:12px;color:var(--muted)}.after-sale-facts dd{margin:4px 0 0;overflow-wrap:anywhere}.after-sale-pending{border-top:1px solid var(--border);padding-top:16px;margin-top:20px}.after-sale-comparison{margin:16px 0}.after-sale-comparison .order-change-table{min-width:500px}#after-sale-changes-entry{white-space:nowrap}#after-sale-changes-dialog{width:min(900px,96vw)}#after-sale-changes-title{padding-right:35px}#after-sale-review-form{margin-top:20px}#after-sale-review-form>label{margin-top:16px}#after-sale-review-form .check{align-items:flex-start}#after-sale-review-form .check input{flex:0 0 18px;margin-top:2px}@media(max-width:650px){#after-sale-edit-form .form-actions{align-items:flex-start;gap:12px}.after-sale-facts{gap:12px}.after-sale-comparison .order-change-table{min-width:460px}}
/* 人数单独按日期登记,不从订单数推算。 */
.order-people-strip{display:flex;align-items:baseline;gap:14px;padding:11px 15px;border:1px solid var(--border);border-radius:7px;background:var(--white);margin:0 0 16px;font-size:12px}.order-people-strip strong{font-weight:500;color:var(--muted)}.order-people-strip>span{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.order-people-strip>small{margin-left:auto;font-size:11px;color:var(--muted)}#people-count-dialog{width:min(520px,96vw);padding:26px 28px}#people-count-title{margin:0 0 20px}#people-count-status{margin:13px 0 0}#people-count-form .form-actions{gap:12px}.report-people-strip{margin-bottom:16px}
@@ -147,7 +150,7 @@ button.order-copy-button:focus-visible{outline:3px solid var(--gold);outline-off
#people-count-history-dialog{width:min(720px,96vw)}#people-count-history-title{padding-right:38px}.people-history-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.people-history-filters>label{flex:1;min-width:155px}.people-history-filters>.actions{width:100%;gap:7px}.people-history-filters>.actions button{font-size:12px;padding:7px 13px}.people-history-table th.number{text-align:right}.people-history-table td{font-variant-numeric:tabular-nums}.people-history-table th,.people-history-table td{padding:11px 12px}.people-history-table tfoot th,.people-history-table tfoot td{background:var(--soft);border-top:1px solid var(--border)}.people-history-table tfoot strong{font-size:17px}.people-history-table tfoot .small{margin-top:4px;font-size:11px}@media(max-width:650px){#people-count-history-dialog{padding:22px 16px}.people-history-filters{gap:10px}.people-history-filters>label{flex-basis:calc(50% - 5px);min-width:0}.people-history-filters>.primary{padding:8px 18px}.people-history-table{font-size:12px}.people-history-table th,.people-history-table td{padding:10px 5px}.people-history-table tfoot strong{font-size:15px}}
/* 三人经营:沿用原有卡片与表格,区分往来和订单利润。 */
.member-badge{margin-left:10px}.member-filter{min-width:125px}.order-book-filters .member-filter{flex:0 0 170px;margin:0}.report-controls .member-filter{min-width:125px}.team-funds-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.team-funds-filters label{flex:1 1 160px;margin:0}.team-funds-filters button{margin-bottom:0}.team-balance-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.team-balance-cards .stat .hint{line-height:1.7}.team-pair .panel-title h2{margin:0}.team-pair-table{min-width:640px}.team-pair-table td{line-height:1.7;vertical-align:top}.team-pair-table th{white-space:nowrap}.team-due strong{color:var(--accent,#7d5d3b)}.team-pair-details{margin-top:16px;border-top:1px solid var(--line,#e5dfd4);padding-top:14px}.team-pairs .team-pair{margin-bottom:20px}.team-settings{margin-bottom:24px}.team-member-list{display:grid;gap:8px}.team-member-row{display:flex;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid var(--line,#e5dfd4)}.team-member-row strong{min-width:64px}.team-member-row button,.team-member-row .badge{margin-left:auto}.reimbursement-form .reimbursement-item-row:has([name="itemMember"]){grid-template-columns:minmax(160px,2fr) minmax(100px,1fr) minmax(100px,1fr) auto}.reimbursement-form .reimbursement-item-row label{margin:0}.team-password-form input{max-width:100%}.daily-reimbursements .reimbursement-item-labels:has(+ #reimbursement-items [name="itemMember"]){display:none}
@media(max-width:1000px){.team-balance-cards{grid-template-columns:1fr}.report-recipient-grid{grid-template-columns:1fr}.order-book-filters .member-filter{flex:1 1 125px}.app-body nav button{white-space:nowrap}}
@media(max-width:1000px){.team-balance-cards{grid-template-columns:1fr}.order-book-filters .member-filter{flex:1 1 125px}.app-body nav button{white-space:nowrap}}
@media(max-width:600px){.team-pair .panel-title{display:block}.team-pair .panel-title .badge{display:inline-block;margin-top:10px}.team-member-row{flex-wrap:wrap;gap:8px}.team-member-row .small{flex:1}.team-funds-filters{gap:12px}.team-funds-filters label{flex-basis:120px}.reimbursement-form .reimbursement-item-row:has([name="itemMember"]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.reimbursement-form .reimbursement-item-row [data-action="reimbursement-remove-item"]{justify-self:end}}
.cost-funding{grid-column:1/-1;margin-top:12px;padding:12px;border:1px solid var(--line,#e5dfd4);border-radius:8px}.cost-funding summary{cursor:pointer;font-size:13px;color:var(--muted,#786e63)}.fee-row>.cost-funding{width:100%}.cost-funding .grid{margin-top:12px}.cost-funding .funding-status{margin:10px 0}.reimbursement-items-read small{display:block}