掛單
This commit is contained in:
1 parent
9e251fc7d4
commit
98ee587dc0
6 files changed
+1154
-216
No files matched your search
@@ -897,6 +897,32 @@
|
||||
},
|
||||
changeGuadanGuest(item) {//可以變更人員、床位
|
||||
console.log('變更人員、床位', item);
|
||||
let detail = {
|
||||
uuid: item.uuid,
|
||||
fullName: item.fullName,
|
||||
gender: item.gender,
|
||||
checkInAt: item.checkinat,
|
||||
checkOutAt: item.checkoutat,
|
||||
statuscode: item.statuscode,
|
||||
statusName: item.statusName,
|
||||
note: item.note,
|
||||
handi: item.specialNeeds,
|
||||
bedUuid: item.bedUuid,
|
||||
roomUuid: item.roomUuid,
|
||||
name: item.fullName,
|
||||
guaDanOrderNo: this.guadanorder.order_form.orderNo
|
||||
orderUuid: this.guadanorder.order_form.uuid
|
||||
|
||||
}
|
||||
axios.post(HTTP_HOST + 'api/guadan/changeGuadanGuest', { guest: detail })
|
||||
.then((res => {
|
||||
this.message_dialog = true
|
||||
this.message = '掛單資料更新成功'
|
||||
this.guadanorder.order_form.uuid = res.data.uuid;
|
||||
})).catch((error) => {
|
||||
this.message_dialog = true
|
||||
this.message = '掛單資料更新失敗:' + (error.response?.data?.message || error.message)
|
||||
});
|
||||
},
|
||||
confirmDeleteGuadanOrderGuest(item) {
|
||||
console.log('取消預訂', item);
|
||||
|
||||
Reference in new issue
Block a user