修正使用不存在物件
修正簡體字
This commit is contained in:
@@ -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'
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user