From 14f4b160e67d3395b18cfe6610de289a166c817c Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 5 Nov 2026 17:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=92=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/hotel-manage/calendar.vue | 2 +- src/pages/hotel-manage/detail.vue | 2 +- src/pages/hotel-manage/list.vue | 1 + src/pages/hotel-manage/orders.vue | 390 +++++++++++++++++++++++++--- src/pages/hotel-manage/products.vue | 2 +- src/pages/hotel-manage/rooms.vue | 16 +- src/sheep/api/sm-hotel-admin.ts | 10 + 7 files changed, 376 insertions(+), 47 deletions(-) diff --git a/src/pages/hotel-manage/calendar.vue b/src/pages/hotel-manage/calendar.vue index 5ab59ba..c0e7a3c 100644 --- a/src/pages/hotel-manage/calendar.vue +++ b/src/pages/hotel-manage/calendar.vue @@ -588,7 +588,7 @@ const submitSingle = async () => { saving.value = true try { const payload: any = { - id: single.id || undefined, + id: single.id != null && single.id !== "" ? String(single.id) : undefined, stayDate: single.stayDate, productCode: single.productCode, sellPrice: single.sellPrice !== "" ? Number(single.sellPrice) : undefined, diff --git a/src/pages/hotel-manage/detail.vue b/src/pages/hotel-manage/detail.vue index 65fac1e..67390b4 100644 --- a/src/pages/hotel-manage/detail.vue +++ b/src/pages/hotel-manage/detail.vue @@ -604,7 +604,7 @@ const submitEdit = async () => { const payload: any = { ...(hotel.value || {}), ...buildPayload(), - id: hotel.value?.id || hotelId.value, + id: String(hotel.value?.id || hotelId.value), } const res: any = await smHotelAdminApi.update(payload) if (res?.code !== 0) { diff --git a/src/pages/hotel-manage/list.vue b/src/pages/hotel-manage/list.vue index 7bdf727..caed585 100644 --- a/src/pages/hotel-manage/list.vue +++ b/src/pages/hotel-manage/list.vue @@ -354,6 +354,7 @@ const batchSetStatus = async (status: "ACTIVE" | "OFFLINE") => { } const res: any = await smHotelAdminApi.update({ ...hotel, + id: hotel?.id != null ? String(hotel.id) : id, upstreamStatus: status, }) if (res?.code === 0) ok++ diff --git a/src/pages/hotel-manage/orders.vue b/src/pages/hotel-manage/orders.vue index 547544a..83d1cff 100644 --- a/src/pages/hotel-manage/orders.vue +++ b/src/pages/hotel-manage/orders.vue @@ -30,7 +30,12 @@ 暂无订单 - + {{ row.hotelName || row.hotelCode || "酒店" }} @@ -39,34 +44,54 @@ 结算价异常 · 请人工判断 下游申请取消 · 请确认 + + 单号 + + {{ orderNo(row) }} + 复制 + + + + 房型/产品 + {{ row.productName || row.roomTypeName || row.productCode || "-" }} + + + 入住 + {{ row.checkInDate || "-" }} ~ {{ row.checkOutDate || "-" }} · {{ row.count || 1 }}间 + + + 联系人 + {{ row.contactName || "-" }} {{ row.contactPhone || "" }} + + + 支付时间 + {{ fmtTime(row.createTime) }} + 取消规则:{{ row.cancelRuleHint }} - {{ row.productName || row.roomTypeName || row.productCode || "-" }} - - {{ row.checkInDate || "-" }} ~ {{ row.checkOutDate || "-" }} · {{ row.count || 1 }}间 - - - {{ row.contactName || "-" }} {{ row.contactPhone || "" }} - {{ row.failMsg }} - + ¥{{ formatAmt(row.sellAmount) }} - - - - - - - + + + + + @@ -78,20 +103,88 @@ 没有更多了 + + + + + 订单详情 + 关闭 + + + 加载中… + + + + 暂无详情 + + + +