fix(jd): 后管京东数据库列表裁成部分字段(12 列),全量属性收进详情抽屉(B104)

This commit is contained in:
2026-11-15 04:27:48 +08:00
parent edc1772683
commit 9c8926068d
3 changed files with 36 additions and 36 deletions
@@ -2,6 +2,8 @@
/** 京东数据库页(v1.4 Phase 5):公司隔离的京东商品库,筛选行(店铺/商品编码/标题关键字/商品状态/
* 分组/同步起止 date 对)+查询/导出/重置/管理分组 + 自绘明细表(勾选列+点行开详情抽屉)
* + 删除(单行/批量,先删桶对象、全成功才删库行,确认弹窗点名数量)+ OldPagination。
* 列表只摆部分字段(B104 用户口径「外边列表部分字段,详情显示全部属性」):类目/信息分/SKU 数/
* 上架时间/京东创建/修改时间不再上列表,全部收进详情抽屉基本信息。
* 骨架像素复刻「外观专利数据库」页(panel-box + LoadFailureBar + 自绘 table + 旧式分页);
* 公司 tab 切换=清筛选重取(watch 体照外观专利页逐字形状);日期对护栏:起侧 max=止侧、
* 止侧 min=起侧、两侧 @change 用 orderedPair 把倒挂交换回来(clampJdSyncedRange 照 clampDatePair)。
@@ -301,17 +303,11 @@ onMounted(() => {
<th>商品信息</th>
<th style="width: 118px">商品编码</th>
<th style="width: 118px">货号</th>
<th style="width: 110px">类目</th>
<th style="width: 86px">品牌</th>
<th style="width: 76px">信息分</th>
<th style="width: 70px">SKU</th>
<th style="width: 120px">店铺</th>
<th style="width: 76px">总库存</th>
<th style="width: 96px">品牌</th>
<th style="width: 112px">价格区间</th>
<th style="width: 170px">上架时间</th>
<th style="width: 76px">总库存</th>
<th style="width: 86px">商品状态</th>
<th style="width: 170px">创建时间</th>
<th style="width: 170px">修改时间</th>
<th style="width: 120px">店铺</th>
<th style="width: 100px">分组</th>
<th style="width: 170px">同步时间</th>
</tr>
@@ -327,26 +323,20 @@ onMounted(() => {
<td class="title-cell" :title="row.title">{{ row.title || '-' }}</td>
<td class="mono-cell">{{ row.productCode || '-' }}</td>
<td class="mono-cell">{{ row.itemNum || '-' }}</td>
<td :title="row.categoryPath || ''">{{ row.categoryPath || '-' }}</td>
<td>{{ row.brand || '-' }}</td>
<td>{{ row.healthScore ?? '-' }}</td>
<td>{{ row.skuCount ?? '-' }}</td>
<td :title="row.shopName || ''">{{ row.shopName || '-' }}</td>
<td>{{ row.stockTotal ?? '-' }}</td>
<td>{{ jdPriceRange(row) || '-' }}</td>
<td>{{ row.jdOnlineAt ? formatDateTime(row.jdOnlineAt) : '-' }}</td>
<td>{{ row.stockTotal ?? '-' }}</td>
<td>{{ row.saleStatus || '-' }}</td>
<td>{{ row.jdCreatedAt ? formatDateTime(row.jdCreatedAt) : '-' }}</td>
<td>{{ formatDateTime(row.jdUpdatedAt || '') }}</td>
<td :title="row.shopName || ''">{{ row.shopName || '-' }}</td>
<td :title="row.groupName || ''">{{ row.groupName || '未分组' }}</td>
<td>{{ formatDateTime(row.syncedAt || '') }}</td>
</tr>
</template>
<tr v-else-if="loading">
<td colspan="18" class="empty-tip">加载中...</td>
<td colspan="12" class="empty-tip">加载中...</td>
</tr>
<tr v-else>
<td colspan="18" class="empty-tip">暂无京东商品数据</td>
<td colspan="12" class="empty-tip">暂无京东商品数据</td>
</tr>
</tbody>
</table>
@@ -371,7 +361,7 @@ onMounted(() => {
</template>
<style scoped>
/* 像素复刻「外观专利数据库」页样式(panel-box + 自绘表格 + 旧式分页),表头多一列「京东更新时间」。 */
/* 像素复刻「外观专利数据库」页样式(panel-box + 自绘表格 + 旧式分页);列表只摆部分字段,全量属性在详情抽屉。 */
.jd-database-view {
font-family: inherit;
color: var(--c-text, #24384d);
@@ -532,7 +522,7 @@ h3 {
table-layout: fixed;
}
.jd-table-scroll > table {
min-width: 1860px;
min-width: 1360px;
}
.table-scroll th,
.table-scroll td {
@@ -1,6 +1,8 @@
<script setup lang="ts">
/** 京东商品详情抽屉(v1.4 Phase 5):点行打开,展示基本信息 + attrGroups 分块表格 +
* 图片网格(MAIN/ATTR/DETAIL 三区,attr 图按 attrName 归并)。
* 基本信息=商品全部字段(B104:列表只摆部分字段,类目/信息分/SKU 数/上架时间/京东创建/
* 修改时间/店铺/分组都在这里看)。
* 图片点击放大预览用自绘 modal-mask(先例:RecordsHistoryPage 的 thumb + modal-mask +
* 原图新标签;不用 element-plus)。数据由本组件按 (id, companyId) 自取,失败条内提示可重试。 */
import { computed, ref, watch } from 'vue'
@@ -144,6 +146,8 @@ function dash(value: string | number | null | undefined): string {
<div class="info-item"><dt>价格区间</dt><dd>{{ dash(jdPriceRange(item ?? { priceMin: '', priceMax: '' })) }}</dd></div>
<div class="info-item"><dt>总库存</dt><dd>{{ dash(item?.stockTotal) }}</dd></div>
<div class="info-item"><dt>状态</dt><dd>{{ dash(item?.saleStatus) }}</dd></div>
<div class="info-item"><dt>店铺</dt><dd :title="item?.shopName || ''">{{ dash(item?.shopName) }}</dd></div>
<div class="info-item"><dt>分组</dt><dd>{{ dash(item?.groupName || '未分组') }}</dd></div>
<div class="info-item"><dt>上架时间</dt><dd>{{ item?.jdOnlineAt ? formatDateTime(item.jdOnlineAt) : '-' }}</dd></div>
<div class="info-item"><dt>京东创建时间</dt><dd>{{ item?.jdCreatedAt ? formatDateTime(item.jdCreatedAt) : '-' }}</dd></div>
<div class="info-item"><dt>京东修改时间</dt><dd>{{ item?.jdUpdatedAt ? formatDateTime(item.jdUpdatedAt) : '-' }}</dd></div>