修正使用不存在物件

修正簡體字
This commit is contained in:
2026-01-21 16:15:47 +08:00
parent 775bfbeb41
commit 6fdce11152
6 changed files with 34 additions and 27 deletions

View File

@@ -160,7 +160,7 @@
style="border-bottom: 1px solid #eee;"
>
<div class="d-flex align-center">
<span class="font-weight-bold">住</span>
<span class="font-weight-bold">住</span>
</div>
<v-btn icon @click="closeXuzhuGuestModalMethod">
<v-icon>mdi-close</v-icon>
@@ -170,11 +170,11 @@
<!-- 弹窗内容 -->
<v-card-text class="flex-grow-1 py-6" style="overflow-y: auto;">
<div class="mb-4">
<span class="font-weight-medium">前退房时间</span>
<span class="font-weight-medium">前退房時間</span>
<span class="text-primary">{{ guadanguest.xuzhu.currentCheckoutDate }}</span>
</div>
<div class="d-flex align-center">
<span class="font-weight-medium mr-2">续住后退房时间:</span>
<span class="font-weight-medium mr-2">續住後退房時間:</span>
<input
type="date"
id="newCheckoutDate"
@@ -187,7 +187,7 @@
<!-- 弹窗操作按钮 -->
<v-card-actions class="justify-end pt-4" style="border-top: 1px solid #eee;">
<v-btn color="primary" class="px-6" @click="xuzhuPost">住</v-btn>
<v-btn color="primary" class="px-6" @click="xuzhuPost">住</v-btn>
<v-btn text class="ml-2" @click="closeXuzhuGuestModalMethod">取消</v-btn>
</v-card-actions>
</v-card>
@@ -1069,11 +1069,11 @@
xuzhuPost() {
// 校验必填
if (!this.guadanguest.xuzhu.guestUuid || !this.guadanguest.xuzhu.guestBedUuid) {
alert("GuestUuid 和 GuestBedUuid 不能空");
alert("GuestUuid 和 GuestBedUuid 不能空");
return;
}
if (!this.guadanguest.xuzhu.newCheckoutDate || !this.guadanguest.xuzhu.currentCheckoutDate) {
alert("续住时间不能空");
alert("續住時間不能空");
return;
}
@@ -1087,8 +1087,8 @@
axios.post(HTTP_HOST + 'api/guadanorderguest/xuzhu', payload)
.then((res) => {
this.$refs.messageModal.open({
title: '住成功',
message: '客人续住已处理',
title: '住成功',
message: '續住以處理',
status: 'success',
callback: () => {
// 弹窗关闭后的回调
@@ -1096,7 +1096,7 @@
this.getGuadanOrderGuestByOrderNo();
}
catch (error) {
console.error("发生错误", error.message);
console.error("發生錯誤", error.message);
} finally {
this.closeXuzhuGuestModalMethod();
}
@@ -1105,8 +1105,8 @@
})
.catch((error) => {
this.$refs.messageModal.open({
title: '住失',
message: error.response?.data?.message || '系统异常,请稍后重试',
title: '住失',
message: error.response?.data?.message || '系統異常,請稍後重試',
status: 'error'
});
});

View File

@@ -17,7 +17,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">📝</div>
<div class="text-muted small mt-1">总挂单次数</div>
<div class="text-muted small mt-1">總掛單次數</div>
<div class="fw-bold fs-5 mt-1">{{ guadanStatistics.guadanTotalCount }}</div>
</div>
</div>
@@ -25,7 +25,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">📋</div>
<div class="text-muted small mt-1">当前挂单数量</div>
<div class="text-muted small mt-1">當前掛單數</div>
<div class="fw-bold fs-5 mt-1">{{ guadanStatistics.guadanCurrentCount }}</div>
</div>
</div>
@@ -33,7 +33,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">👥</div>
<div class="text-muted small mt-1">总挂单人数</div>
<div class="text-muted small mt-1">總掛單人數</div>
<div class="fw-bold fs-5 mt-1">
{{ guadanStatistics.guadanPeopleTotal }} (男:{{ guadanStatistics.guadanPeopleMale }},女:{{ guadanStatistics.guadanPeopleFemale }}
</div>
@@ -215,7 +215,7 @@
{ text: '房间数量', value: 'roomcount' },
{ text: '床位数量', value: 'bedcount' },
{ text: '预约人数', value: 'todaytotalbookers' },
{ text: '已入住人', value: 'checkin'},
{ text: '已入住人', value: 'checkin'},
{ text: '可用床位', value: 'availableBeds' },
{ text: '床位利用率', value: 'bedusagerate' }
],
@@ -303,7 +303,7 @@
},
exportStatisticsToExcel() {
if (!this.items || !this.items.length) {
console.warn("没有数据可导出");
console.warn("沒有數據可匯出");
return;
}
@@ -319,7 +319,7 @@
// 3. 创建 Workbook 并添加 Sheet
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, "统计数据");
XLSX.utils.book_append_sheet(wb, ws, "統計數據");
// 4. 写入 Excel 并下载
const wbout = XLSX.write(wb, { bookType: "xlsx", type: "array" });