diff --git a/src/api/cabinet/cabinet-cell.ts b/src/api/cabinet/cabinet-cell.ts index 352f55f..4c6e393 100644 --- a/src/api/cabinet/cabinet-cell.ts +++ b/src/api/cabinet/cabinet-cell.ts @@ -38,6 +38,20 @@ export interface CabinetCellDTO { orderCount?: number; /** 商品价格 */ cellPrice?: number; + /** 是否已租用:0-未租用,1-已租用 */ + isRented?: number; + /** 关联订单商品ID */ + orderGoodsId?: number; + /** 关联订单ID */ + orderId?: number; + /** 购买人姓名 */ + name?: string; + /** 购买人手机号 */ + mobile?: string; + /** 购买人人脸图片 */ + faceImg?: string; + /** 购买人98ab用户ID */ + ab98UserId?: number; } export interface AddCabinetCellCommand { diff --git a/src/views/cabinet/smart-cabinet-card/detail.vue b/src/views/cabinet/smart-cabinet-card/detail.vue index fcc3f29..9ac48bc 100644 --- a/src/views/cabinet/smart-cabinet-card/detail.vue +++ b/src/views/cabinet/smart-cabinet-card/detail.vue @@ -24,6 +24,7 @@ import EditCabinetDrawer from "./edit-cabinet-drawer.vue"; import { CabinetMainboardDTO, deleteMainboard, getMainboardList, updateMainboard } from "@/api/cabinet/mainboards"; import { getShopById, ShopDTO, getModeText } from "@/api/shop/shop"; import { useBtnPermissionStore } from "@/store/modules/btnPermission"; +import { useMultiTagsStoreHook } from "@/store/modules/multiTags"; defineOptions({ name: "SmartCabinetDetail" @@ -268,6 +269,26 @@ async function handleDeleteMainboard(row: CabinetMainboardDTO) { } } + +const handleAb98ViewDetail = (ab98UserId: number, name: string) => { + // 保存信息到标签页 + useMultiTagsStoreHook().handleTags("push", { + path: `/user/ab98/detail`, + name: "ab98Detail", + query: { id: ab98UserId }, + meta: { + title: `${name}`, + dynamicLevel: 3 + } + }); + router.push({ + path: '/user/ab98/detail', + query: { + id: ab98UserId + } + }); +}; + onMounted(() => { cabinetId.value = Number(route.query.id); fetchCabinetDetail(); @@ -360,7 +381,8 @@ onMounted(() => {
- + @@ -392,10 +414,16 @@ onMounted(() => { @click="handleEditCell(item)" class="cell-btn"> {{ item.goodsName }} - + 格口配置 + + {{ item.name }} +