|
@@ -163,7 +163,7 @@ import { mixinDevice } from "@/utils/mixin";
|
|
|
import { JeecgListMixin } from "@/mixins/JeecgListMixin2";
|
|
import { JeecgListMixin } from "@/mixins/JeecgListMixin2";
|
|
|
import { formatDate } from "@/utils/util";
|
|
import { formatDate } from "@/utils/util";
|
|
|
import EditableCell from "@views/room/modules/checkIn/EditableCell.vue";
|
|
import EditableCell from "@views/room/modules/checkIn/EditableCell.vue";
|
|
|
-import { httpAction } from "@/api/manage";
|
|
|
|
|
|
|
+import { httpAction, postAction } from "@/api/manage";
|
|
|
const hotelInfo = JSON.parse(localStorage.getItem("storeInfo"));
|
|
const hotelInfo = JSON.parse(localStorage.getItem("storeInfo"));
|
|
|
import moment from "moment";
|
|
import moment from "moment";
|
|
|
const date = new Date();
|
|
const date = new Date();
|
|
@@ -244,6 +244,20 @@ export default {
|
|
|
this.dataSourcea = dataSource;
|
|
this.dataSourcea = dataSource;
|
|
|
}
|
|
}
|
|
|
console.log("this.dataSource", this.dataSource);
|
|
console.log("this.dataSource", this.dataSource);
|
|
|
|
|
+
|
|
|
|
|
+ postAction("/rooms/cesRoomLayoutPriceDate/editPrice", {
|
|
|
|
|
+ roomLayoutPriceId: target.price_id,
|
|
|
|
|
+ date: key,
|
|
|
|
|
+ price: value,
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if (res.success) {
|
|
|
|
|
+ this.$message.success(res.message);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.warning(res.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .finally(() => {});
|
|
|
},
|
|
},
|
|
|
moment,
|
|
moment,
|
|
|
searchQuery() {
|
|
searchQuery() {
|