神祖牌位管理模組,掛單模組前端URL添加HTTP_HOST
This commit is contained in:
@@ -1084,7 +1084,7 @@
|
||||
newCheckoutDate: this.guadanguest.xuzhu.newCheckoutDate
|
||||
};
|
||||
|
||||
axios.post('/api/guadanorderguest/xuzhu', payload)
|
||||
axios.post(HTTP_HOST + 'api/guadanorderguest/xuzhu', payload)
|
||||
.then((res) => {
|
||||
this.$refs.messageModal.open({
|
||||
title: '续住成功',
|
||||
@@ -1113,13 +1113,13 @@
|
||||
},
|
||||
//续住相關方法--------------------end
|
||||
getActivityList() {
|
||||
axios.post('/api/activity/GetList?page=1&pageSize=500', { kind: 0, subject: "" })
|
||||
axios.post(HTTP_HOST + 'api/activity/GetList?page=1&pageSize=500', { kind: 0, subject: "" })
|
||||
.then((res) => {
|
||||
this.activityList = res.data.list
|
||||
})
|
||||
},
|
||||
getavailablebedcountbytime(startTime, endTime) {
|
||||
axios.get('/api/region/bed/getavailablebedcountbytime', {
|
||||
axios.get(HTTP_HOST + 'api/region/bed/getavailablebedcountbytime', {
|
||||
params: {
|
||||
startTime: startTime,
|
||||
endTime: endTime
|
||||
@@ -1141,7 +1141,7 @@
|
||||
},
|
||||
confirmAllocation() {
|
||||
//確認分配
|
||||
axios.post('/api/region/bed/confirmallocation', {
|
||||
axios.post(HTTP_HOST + 'api/region/bed/confirmallocation', {
|
||||
preBeds: this.automaticBedAllocation.preBeds,
|
||||
orderNo: this.guadanorder.order_form.orderNo,
|
||||
checkInAt: this.guadanorder.order_form.startdate,
|
||||
@@ -1169,7 +1169,7 @@
|
||||
CheckInAt: this.guadanorder.order_form.startdate || new Date(), // 入住時間
|
||||
CheckOutAt: this.guadanorder.order_form.enddate || null // 退房時間,可為空
|
||||
};
|
||||
axios.post('/api/region/bed/preallocation', payload)
|
||||
axios.post(HTTP_HOST + 'api/region/bed/preallocation', payload)
|
||||
.then(res => {
|
||||
this.automaticBedAllocation.preBeds = res.data.data;
|
||||
})
|
||||
@@ -1217,7 +1217,7 @@
|
||||
getMultiSelectFollowers: function () {
|
||||
var fm = this.automaticBedAllocation.followerModal;
|
||||
var self = this;
|
||||
axios.post('/api/lianyou/getfollowers', null, {
|
||||
axios.post(HTTP_HOST + 'api/lianyou/getfollowers', null, {
|
||||
params: {
|
||||
page: fm.page,
|
||||
pageSize: fm.pageSize,
|
||||
@@ -1288,7 +1288,7 @@
|
||||
},
|
||||
getGuadanOrderById() {
|
||||
if (this.guadanorder.order_form.uuid) {
|
||||
axios.get('/api/guadan/getorderbyid', {
|
||||
axios.get(HTTP_HOST + 'api/guadan/getorderbyid', {
|
||||
params: {
|
||||
orderId: this.guadanorder.order_form.uuid
|
||||
}
|
||||
@@ -1307,7 +1307,7 @@
|
||||
},
|
||||
getGuadanOrderGuestByOrderNo() {
|
||||
if (this.guadanorder.order_form.orderNo) {
|
||||
axios.get('/api/guadanorderguest/getbyorderno', {
|
||||
axios.get(HTTP_HOST + 'api/guadanorderguest/getbyorderno', {
|
||||
params: {
|
||||
orderNo: this.guadanorder.order_form.orderNo
|
||||
}
|
||||
@@ -1317,7 +1317,7 @@
|
||||
}
|
||||
},
|
||||
getGuadanOrderStatus() {
|
||||
axios.get('/api/region/guadan/status/list')
|
||||
axios.get(HTTP_HOST + 'api/region/guadan/status/list')
|
||||
.then((res) => {
|
||||
this.guadanorder.status_items = res.data;
|
||||
})
|
||||
@@ -1326,7 +1326,7 @@
|
||||
if (!this.validateOrderForm()) {
|
||||
return;
|
||||
}
|
||||
axios.post('/api/guadan/create', this.guadanorder.order_form)
|
||||
axios.post(HTTP_HOST + 'api/guadan/create', this.guadanorder.order_form)
|
||||
.then((res => {
|
||||
this.$refs.messageModal.open({
|
||||
title: '掛單提示',
|
||||
@@ -1350,7 +1350,7 @@
|
||||
if (!this.validateOrderForm()) {
|
||||
return;
|
||||
}
|
||||
axios.post('/api/guadan/update', this.guadanorder.order_form)
|
||||
axios.post(HTTP_HOST + 'api/guadan/update', this.guadanorder.order_form)
|
||||
.then((res => {
|
||||
this.$refs.messageModal.open({
|
||||
title: '掛單提示',
|
||||
@@ -1495,13 +1495,13 @@
|
||||
|
||||
},
|
||||
createCheckInGuest() {
|
||||
return axios.post('/api/guadanorderguest/create', this.checkInGuest.inGuest)
|
||||
return axios.post(HTTP_HOST + 'api/guadanorderguest/create', this.checkInGuest.inGuest)
|
||||
},
|
||||
checkBedAndFollower() {
|
||||
this.checkInGuest.inGuest
|
||||
},
|
||||
getGuadanGuestStatus() {
|
||||
axios.get('/api/region/bed/status/list')
|
||||
axios.get(HTTP_HOST + 'api/region/bed/status/list')
|
||||
.then((res) => {
|
||||
this.checkInGuest.status = res.data.filter(item => item.category === 4 && item.code != '404');
|
||||
})
|
||||
@@ -1524,7 +1524,7 @@
|
||||
pageSize: itemsPerPage,
|
||||
searchName: this.selectGuestModal.searchNameOrPhone
|
||||
};
|
||||
axios.post('/api/lianyou/getfollowers', null, {
|
||||
axios.post(HTTP_HOST + 'api/lianyou/getfollowers', null, {
|
||||
params: params
|
||||
}).then((res) => {
|
||||
this.selectGuestModal.items = res.data.data
|
||||
@@ -1559,7 +1559,7 @@
|
||||
},
|
||||
async saveEditGuadanOrderGuest() {
|
||||
try {
|
||||
const res = await axios.post('/api/guadanorderguest/update', this.checkInGuest.inGuest)
|
||||
const res = await axios.post(HTTP_HOST + 'api/guadanorderguest/update', this.checkInGuest.inGuest)
|
||||
this.getGuadanOrderGuestByOrderNo();
|
||||
this.closeCheckInModal();
|
||||
} catch (error) {
|
||||
@@ -1570,7 +1570,7 @@
|
||||
|
||||
},
|
||||
deleteGuadanOrderGuest(guest) {
|
||||
axios.post('/api/guadanorderguest/cancel?uuid=' + guest.uuid)
|
||||
axios.post(HTTP_HOST + 'api/guadanorderguest/cancel?uuid=' + guest.uuid)
|
||||
.then((res) => {
|
||||
this.guadanguest.items = this.guadanguest.items.filter(i => i.uuid != guest.uuid);
|
||||
}).catch((error) => {
|
||||
@@ -1628,7 +1628,7 @@
|
||||
|
||||
//床位選擇相關方法----------------start
|
||||
async loadRegions() {
|
||||
const res = await axios.post('/api/region/getRegionList');
|
||||
const res = await axios.post(HTTP_HOST + 'api/region/getRegionList');
|
||||
this.region_modal.regions = res.data;
|
||||
},
|
||||
async loadRegionsByGender() {
|
||||
@@ -1643,7 +1643,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
const res = await axios.post('/api/region/getRegionListByGender', {
|
||||
const res = await axios.post(HTTP_HOST + 'api/region/getRegionListByGender', {
|
||||
IsMale: isMale
|
||||
});
|
||||
|
||||
@@ -1660,7 +1660,7 @@
|
||||
this.region_modal.selectedType = 'room';
|
||||
this.region_modal.currentSelectBeds = room.beds;
|
||||
if (this.checkInGuest.inGuest.checkInAt && this.checkInGuest.inGuest.checkOutAt) {
|
||||
axios.get('/api/region/room/bed/list', {
|
||||
axios.get(HTTP_HOST + 'api/region/room/bed/list', {
|
||||
params: {
|
||||
roomUuid: room.uuid,
|
||||
StartTime: this.checkInGuest.inGuest.checkInAt,
|
||||
@@ -1678,7 +1678,7 @@
|
||||
},
|
||||
GetRegionRoomBedListByRoomId(roomUuid) {
|
||||
if (this.checkInGuest.inGuest.checkInAt && this.checkInGuest.inGuest.checkOutAt) {
|
||||
axios.get('/api/region/bed/list')
|
||||
axios.get(HTTP_HOST + 'api/region/bed/list')
|
||||
.then((res) => {
|
||||
|
||||
})
|
||||
|
||||
@@ -198,7 +198,7 @@ button:hover {
|
||||
}
|
||||
if (this.loading) return;
|
||||
this.loading = true;
|
||||
axios.post('/api/guadan/guest/query/list',
|
||||
axios.post(HTTP_HOST + 'api/guadan/guest/query/list',
|
||||
{
|
||||
page: this.options.page,
|
||||
pageSize: this.options.itemsPerPage,
|
||||
|
||||
@@ -72,40 +72,40 @@
|
||||
</template>
|
||||
</v-data-table>
|
||||
<v-container>
|
||||
<v-row class="align-baseline" wrap="false">
|
||||
<v-col cols="12" md="8">
|
||||
<v-pagination
|
||||
v-model="options.page"
|
||||
:length="pageCount">
|
||||
</v-pagination>
|
||||
</v-col>
|
||||
<v-col class="text-truncate text-right" cols="12" md="2">
|
||||
共 {{ total }} 筆, 頁數:
|
||||
</v-col>
|
||||
<v-col cols="6" md="1">
|
||||
<v-text-field
|
||||
v-model="options.page"
|
||||
type="number"
|
||||
hide-details
|
||||
dense
|
||||
min="1"
|
||||
:max="pageCount"
|
||||
@input="options.page = parseInt($event, 10)"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<!-- 每頁條數選擇 -->
|
||||
<v-col cols="12" md="1">
|
||||
<v-select
|
||||
v-model="options.itemsPerPage"
|
||||
:items="[5, 10, 20, 50]"
|
||||
label="每頁條數"
|
||||
dense
|
||||
hide-details
|
||||
style="width: 100px;"
|
||||
></v-select>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<v-row class="align-baseline" wrap="false">
|
||||
<v-col cols="12" md="8">
|
||||
<v-pagination
|
||||
v-model="options.page"
|
||||
:length="pageCount">
|
||||
</v-pagination>
|
||||
</v-col>
|
||||
<v-col class="text-truncate text-right" cols="12" md="2">
|
||||
共 {{ total }} 筆, 頁數:
|
||||
</v-col>
|
||||
<v-col cols="6" md="1">
|
||||
<v-text-field
|
||||
v-model="options.page"
|
||||
type="number"
|
||||
hide-details
|
||||
dense
|
||||
min="1"
|
||||
:max="pageCount"
|
||||
@input="options.page = parseInt($event, 10)"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<!-- 每頁條數選擇 -->
|
||||
<v-col cols="12" md="1">
|
||||
<v-select
|
||||
v-model="options.itemsPerPage"
|
||||
:items="[5, 10, 20, 50]"
|
||||
label="每頁條數"
|
||||
dense
|
||||
hide-details
|
||||
style="width: 100px;"
|
||||
></v-select>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</div>
|
||||
<!-- 更新修改確認彈出視窗 -->
|
||||
<message-modal ref="messageModal"></message-modal>
|
||||
@@ -198,7 +198,7 @@
|
||||
},
|
||||
getGuadanOrder() {
|
||||
if (this.loading) return;
|
||||
axios.post('/api/guadan/list', {
|
||||
axios.post(HTTP_HOST + 'api/guadan/list', {
|
||||
startDate: this.search.startDate,
|
||||
endDate: this.search.endDate,
|
||||
guadanUser: this.search.guadanUser,
|
||||
@@ -219,7 +219,7 @@
|
||||
this.$refs.confirmModal.open({
|
||||
message: '確認取消掛單?',
|
||||
onConfirm: () => {
|
||||
axios.post('/api/guadan/cancel', null, {
|
||||
axios.post(HTTP_HOST + 'api/guadan/cancel', null, {
|
||||
params: {
|
||||
uuid: order.uuid
|
||||
}
|
||||
|
||||
@@ -326,7 +326,7 @@
|
||||
saveAs(new Blob([wbout], { type: "application/octet-stream" }), "statistics.xlsx");
|
||||
},
|
||||
GetGuadanStatistics() {
|
||||
axios.get('/api/guadanStatistics/GetGuadanStatistics')
|
||||
axios.get(HTTP_HOST + 'api/guadanStatistics/GetGuadanStatistics')
|
||||
.then((res) => {
|
||||
this.guadanStatistics = res.data.guadanStatistics;
|
||||
})
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
},
|
||||
methods: {
|
||||
getActivityList() {
|
||||
axios.post('/api/activity/GetList?page=1&pageSize=500', { kind: 0, subject: "" })
|
||||
axios.post(HTTP_HOST + 'api/activity/GetList?page=1&pageSize=500', { kind: 0, subject: "" })
|
||||
.then((res) => {
|
||||
this.activityList = res.data.list
|
||||
})
|
||||
@@ -467,7 +467,7 @@
|
||||
},
|
||||
getGuadanOrderById() {
|
||||
if (this.guadanorder.order_form.uuid) {
|
||||
axios.get('/api/guadan/getorderbyid', {
|
||||
axios.get(HTTP_HOST + 'api/guadan/getorderbyid', {
|
||||
params: {
|
||||
orderId: this.guadanorder.order_form.uuid
|
||||
}
|
||||
@@ -486,7 +486,7 @@
|
||||
},
|
||||
getGuadanOrderGuestByOrderNo() {
|
||||
if (this.guadanorder.order_form.orderNo) {
|
||||
axios.get('/api/guadanorderguest/getbyorderno', {
|
||||
axios.get(HTTP_HOST + 'api/guadanorderguest/getbyorderno', {
|
||||
params: {
|
||||
orderNo: this.guadanorder.order_form.orderNo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user