增加发票号码维护界面

This commit is contained in:
2025-12-17 10:39:19 +08:00
parent d85a8684a6
commit 19ecb65183
3 changed files with 261 additions and 111 deletions

View File

@@ -1,15 +1,43 @@
@import './variables.module.scss';
// Element Plus风格的颜色按钮样式
@mixin colorBtn($color) {
background: $color;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
font-size: 14px;
font-weight: 400;
line-height: 1;
white-space: nowrap;
text-align: center;
background-image: none;
border: 1px solid $color;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
box-sizing: border-box;
color: #fff;
background-color: $color;
&:hover {
color: $color;
&:hover,
&:focus {
background-color: lighten($color, 10%);
border-color: lighten($color, 10%);
color: #fff;
}
&:before,
&:after {
background: $color;
}
&:active {
background-color: darken($color, 5%);
border-color: darken($color, 5%);
color: #fff;
}
&:disabled {
color: #c0c4cc;
background-color: #f5f7fa;
border-color: #e4e7ed;
cursor: not-allowed;
}
}
@@ -42,42 +70,110 @@
}
.pan-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
font-size: 14px;
color: #fff;
padding: 14px 36px;
border-radius: 8px;
font-weight: 400;
line-height: 1;
white-space: nowrap;
text-align: center;
background-image: none;
border: 1px solid #dcdfe6;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
box-sizing: border-box;
color: #606266;
background-color: #fff;
&:hover,
&:focus {
color: #409eff;
border-color: #c6e2ff;
background-color: #ecf5ff;
}
&:active {
color: #3a8ee6;
border-color: #3a8ee6;
background-color: #ecf5ff;
}
&:disabled {
color: #c0c4cc;
background-color: #f5f7fa;
border-color: #e4e7ed;
cursor: not-allowed;
}
}
// Element Plus风格的链接按钮样式
.pan-btn-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 16px;
font-size: 14px;
font-weight: 400;
line-height: 1;
white-space: nowrap;
text-align: center;
background-image: none;
border: none;
border-radius: 4px;
cursor: pointer;
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
box-sizing: border-box;
background-color: transparent;
text-decoration: none;
outline: none;
transition: 600ms ease all;
position: relative;
display: inline-block;
&:hover {
background: #fff;
&:before,
&:after {
width: 100%;
transition: 600ms ease all;
}
&:hover,
&:focus {
text-decoration: underline;
}
&:before,
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 2px;
width: 0;
transition: 400ms ease all;
&:active {
opacity: 0.8;
}
&:disabled {
color: #c0c4cc;
cursor: not-allowed;
text-decoration: none;
}
}
&::after {
right: inherit;
top: inherit;
left: 0;
bottom: 0;
// 不同颜色的链接按钮
.blue-btn-link {
@extend .pan-btn-link;
color: #409eff;
&:hover,
&:focus {
color: #66b1ff;
}
}
.red-btn-link {
@extend .pan-btn-link;
color: #f56c6c;
&:hover,
&:focus {
color: #f78989;
}
}
.info-btn-link {
@extend .pan-btn-link;
color: #909399;
&:hover,
&:focus {
color: #a6a9ad;
}
}