feat: 新增财务交易流水模块页面与接口
This commit is contained in:
18
apps/web-antd/src/views/finance/transaction/styles/base.less
Normal file
18
apps/web-antd/src/views/finance/transaction/styles/base.less
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* 文件职责:交易流水页面基础容器样式。
|
||||
*/
|
||||
.page-finance-transaction {
|
||||
.ant-card {
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ft-mono {
|
||||
font-family: ui-monospace, sfmono-regular, menlo, consolas, monospace;
|
||||
}
|
||||
193
apps/web-antd/src/views/finance/transaction/styles/drawer.less
Normal file
193
apps/web-antd/src/views/finance/transaction/styles/drawer.less
Normal file
@@ -0,0 +1,193 @@
|
||||
/**
|
||||
* 文件职责:交易详情与关联订单抽屉样式。
|
||||
*/
|
||||
.page-finance-transaction {
|
||||
.ant-drawer {
|
||||
.ant-drawer-header {
|
||||
padding: 14px 18px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.ant-drawer-body {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
|
||||
.ant-drawer-footer {
|
||||
padding: 12px 20px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ft-section {
|
||||
margin-bottom: 20px;
|
||||
|
||||
.ft-section-title {
|
||||
padding-left: 10px;
|
||||
margin-bottom: 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
border-left: 3px solid #1677ff;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px 20px;
|
||||
font-size: 13px;
|
||||
|
||||
.label {
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.full {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-order-link {
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.ft-detail-amount {
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
|
||||
&.income {
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
&.expense {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-detail-table-wrap {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.ft-detail-table {
|
||||
width: 100%;
|
||||
min-width: 520px;
|
||||
font-size: 13px;
|
||||
border-collapse: collapse;
|
||||
|
||||
th {
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
text-align: left;
|
||||
background: #fafafa;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
|
||||
&.right {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 8px 10px;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
|
||||
&.right {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ft-amount-summary {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 12px 10px 0;
|
||||
font-size: 13px;
|
||||
|
||||
> div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: rgb(0 0 0 / 65%);
|
||||
}
|
||||
|
||||
.discount {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
|
||||
.total {
|
||||
padding-top: 8px;
|
||||
margin-top: 4px;
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
border-top: 1px solid #f0f0f0;
|
||||
|
||||
span:last-child {
|
||||
font-size: 15px;
|
||||
color: #1677ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ft-timeline {
|
||||
position: relative;
|
||||
padding-left: 22px;
|
||||
|
||||
.ft-timeline-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding-bottom: 18px;
|
||||
font-size: 13px;
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: -22px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
content: '';
|
||||
background: #1677ff;
|
||||
border: 2px solid #d6e4ff;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
top: 17px;
|
||||
left: -18px;
|
||||
width: 2px;
|
||||
height: calc(100% - 12px);
|
||||
content: '';
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.text {
|
||||
font-weight: 500;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
}
|
||||
|
||||
.time {
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ft-remark-box {
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
color: rgb(0 0 0 / 65%);
|
||||
background: #fafafa;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* 文件职责:交易流水页面样式聚合入口。
|
||||
*/
|
||||
@import './base.less';
|
||||
@import './layout.less';
|
||||
@import './table.less';
|
||||
@import './drawer.less';
|
||||
@import './modal.less';
|
||||
@import './responsive.less';
|
||||
134
apps/web-antd/src/views/finance/transaction/styles/layout.less
Normal file
134
apps/web-antd/src/views/finance/transaction/styles/layout.less
Normal file
@@ -0,0 +1,134 @@
|
||||
/**
|
||||
* 文件职责:交易流水页面布局与筛选区域样式。
|
||||
*/
|
||||
.ft-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ft-stat-card {
|
||||
padding: 18px 20px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgb(15 23 42 / 6%);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 6px 14px rgb(15 23 42 / 10%);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
}
|
||||
|
||||
.ft-stat-label {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
font-size: 13px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.ft-stat-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.ft-stat-value {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
|
||||
&.is-green {
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
&.is-red {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
padding: 14px 18px;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgb(15 23 42 / 6%);
|
||||
|
||||
.ft-store-select {
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
.ft-date-input {
|
||||
width: 145px;
|
||||
}
|
||||
|
||||
.ft-type-select {
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.ft-channel-select {
|
||||
width: 110px;
|
||||
}
|
||||
|
||||
.ft-payment-select {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.ft-search {
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
.ft-date-sep {
|
||||
font-size: 13px;
|
||||
line-height: 32px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.ft-toolbar-right {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.ft-search-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.ft-export-btn {
|
||||
display: inline-flex;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.ant-select-selector,
|
||||
.ant-input,
|
||||
.ant-input-affix-wrapper {
|
||||
height: 32px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ant-input-affix-wrapper .ant-input {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-quick-dates {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
|
||||
.ant-btn {
|
||||
min-width: 56px;
|
||||
height: 28px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* 文件职责:交易流水导出弹窗样式。
|
||||
*/
|
||||
.ft-export-modal {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ft-export-desc {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: rgb(0 0 0 / 65%);
|
||||
}
|
||||
|
||||
.ft-export-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.ft-export-line {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: space-between;
|
||||
font-size: 13px;
|
||||
|
||||
.ft-export-label {
|
||||
color: rgb(0 0 0 / 45%);
|
||||
}
|
||||
|
||||
.ft-export-value {
|
||||
color: rgb(0 0 0 / 88%);
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
&.is-total {
|
||||
padding-top: 8px;
|
||||
margin-top: 4px;
|
||||
font-weight: 600;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
|
||||
.ft-export-value {
|
||||
color: #1677ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 文件职责:交易流水页面响应式样式。
|
||||
*/
|
||||
@media (max-width: 1600px) {
|
||||
.ft-stats {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.ft-stats {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.ft-toolbar {
|
||||
padding: 14px 12px;
|
||||
|
||||
.ft-store-select,
|
||||
.ft-date-input,
|
||||
.ft-type-select,
|
||||
.ft-channel-select,
|
||||
.ft-payment-select,
|
||||
.ft-search {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ft-date-sep {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ft-quick-dates {
|
||||
flex-wrap: wrap;
|
||||
width: 100%;
|
||||
|
||||
.ant-btn {
|
||||
flex: 1;
|
||||
min-width: 68px;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-toolbar-right {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.ft-export-btn {
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-info-grid {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
.full {
|
||||
grid-column: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* 文件职责:交易流水表格区域样式。
|
||||
*/
|
||||
.ft-table-card {
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
border: 1px solid #f0f0f0;
|
||||
border-radius: 10px;
|
||||
|
||||
.ant-table-wrapper {
|
||||
.ant-table-thead > tr > th {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr > td {
|
||||
font-size: 13px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-pagination {
|
||||
margin: 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.ft-link-action {
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
.ft-amount {
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
|
||||
&.income {
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
&.expense {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
|
||||
&.neutral {
|
||||
color: rgb(0 0 0 / 88%);
|
||||
}
|
||||
}
|
||||
|
||||
.ft-time {
|
||||
font-size: 12px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ft-remark {
|
||||
display: inline-block;
|
||||
max-width: 140px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 12px;
|
||||
color: rgb(0 0 0 / 45%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ft-summary-row > td {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: rgb(0 0 0 / 88%);
|
||||
background: #f8f9fb !important;
|
||||
border-top: 2px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.ft-summary-text {
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user