+
-
+
-
+
{{ String((row as any)?.title ?? (row as any)?.name ?? '-') }}
@@ -333,42 +333,44 @@
-
-
-
-
{{ getTitleName(row) || '-' }}
-
{{ getTitleValue(row) || '-' }}
-
-
+
+ {{ getTitleName(row) || '-' }}
-
-
-
+
+ {{ getTitleValue(row) || '-' }}
+
+
+
+
-
{{ item.metricName }}
-
- {{ item.actualValue }}
- {{ item.arrow }}
-
-
- {{ pair.label }}
-
-
-
-
{{ item.paramValue }}
+ {{ item.actualValue }}
+
{{ item.arrow }}
+
+
+ {{ pair.label }}
+
+
-
-
-
+
+
+
+
+
+ {{ item.paramValue }}
+
+
+
+
@@ -384,7 +386,9 @@
@@ -1208,44 +1198,9 @@ onMounted(async () => {
}
}
-.table-core {
- display: flex;
- flex-direction: column;
- gap: 4px;
-
- .core-name {
- font-size: 12px;
- color: var(--el-text-color-secondary);
- }
-
- .core-value {
- font-weight: 700;
- color: var(--el-text-color-primary);
- }
-}
-
-.metric-cell {
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 2px 0;
-}
-
-.metric-cell-row {
- display: grid;
- grid-template-columns: 160px 1fr 120px;
- gap: 12px;
- align-items: start;
-}
-
-.metric-cell-name {
+.table-metric-actual,
+.table-metric-ref {
font-size: 12px;
- color: var(--el-text-color-regular);
-}
-
-.metric-cell-actual {
- font-size: 12px;
- color: var(--el-text-color-primary);
line-height: 1.4;
display: flex;
flex-wrap: wrap;
@@ -1272,21 +1227,18 @@ onMounted(async () => {
font-weight: 700;
display: inline-block;
- &.badge-danger,
&.label-trend-up {
background: #fee2e2;
color: #ef4444;
border: 1px solid #fecaca;
}
- &.badge-warn,
&.label-trend-flat {
background: #fef3c7;
color: #d97706;
border: 1px solid #fde68a;
}
- &.badge-success,
&.label-trend-down {
background: #dcfce7;
color: #22c55e;
@@ -1295,12 +1247,22 @@ onMounted(async () => {
}
}
-.metric-cell-ref {
- font-size: 12px;
+.table-metric-actual {
+ &.label-trend-up {
+ color: #ef4444;
+ }
+
+ &.label-trend-down {
+ color: #22c55e;
+ }
+
+ &.label-trend-flat {
+ color: #d97706;
+ }
+}
+
+.table-metric-ref {
color: var(--el-text-color-secondary);
- text-align: right;
- line-height: 1.4;
- white-space: pre-line;
}
.empty {
diff --git a/src/views/ydoyun/report/lijun/reportpage6/index.vue b/src/views/ydoyun/report/lijun/reportpage6/index.vue
index d3d49c9..8d8c6ac 100644
--- a/src/views/ydoyun/report/lijun/reportpage6/index.vue
+++ b/src/views/ydoyun/report/lijun/reportpage6/index.vue
@@ -553,7 +553,7 @@
row-class-name="product-list-row-clickable"
@row-click="handleProductRowClick"
>
-
+
-
+
-
- 款号:
-
- {{ getProductCode(row) }}
-
+
{{ row.name || '-' }}
+
+ {{ getProductCode(row) }}
-
条码: {{ row.barcode || '-' }}
-
颜色: {{ row.color }}
-
进价: ¥{{ formatNumber(row.purchasePrice || 0) }}
-
售价: ¥{{ formatNumber(row.sellingPrice || 0) }}
@@ -718,13 +712,37 @@
-
-
+
+
- {{ row.category }}
+
+ {{ getProductCode(row) }}
+
-
+
+ {{ row.barcode || '-' }}
+
+
+ {{ row.color || '-' }}
+
+
+ {{ row.category || '-' }}
+
+
+
+ {{ row.purchasePrice != null ? '¥' + formatNumber(row.purchasePrice) : '-' }}
+
+
+
+
+ {{ row.sellingPrice != null ? '¥' + formatNumber(row.sellingPrice) : '-' }}
+
+
+
{{ row.lsRaw || '-' }}
@@ -3586,6 +3604,17 @@ onDeactivated(() => {
gap: 12px;
align-items: flex-start;
+ &.product-info-compact .product-details {
+ .product-name {
+ font-size: 13px;
+ font-weight: 600;
+ margin-bottom: 2px;
+ }
+ .product-code-link {
+ font-size: 12px;
+ }
+ }
+
.product-image {
width: 48px;
height: 56px;