|
@@ -423,6 +423,8 @@
|
|
|
<refund-modal ref="modalRefundForm" @ok="modalFormOk"></refund-modal>
|
|
<refund-modal ref="modalRefundForm" @ok="modalFormOk"></refund-modal>
|
|
|
<payment-modal ref="modalPaymentForm" @ok="modalFormOk"></payment-modal>
|
|
<payment-modal ref="modalPaymentForm" @ok="modalFormOk"></payment-modal>
|
|
|
<fee-modal ref="modalFeeForm" @ok="modalFormOk"></fee-modal>
|
|
<fee-modal ref="modalFeeForm" @ok="modalFormOk"></fee-modal>
|
|
|
|
|
+ <member-message-modal ref="modalMemberMessage"></member-message-modal>
|
|
|
|
|
+ <lease-goods-modal ref="modalLeaseGoods"></lease-goods-modal>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -434,6 +436,8 @@ import CustomerModal from "./CustomerModal.vue";
|
|
|
import RefundModal from "./RefundModal.vue";
|
|
import RefundModal from "./RefundModal.vue";
|
|
|
import PaymentModal from "./PaymentModal.vue";
|
|
import PaymentModal from "./PaymentModal.vue";
|
|
|
import FeeModal from "./FeeModal";
|
|
import FeeModal from "./FeeModal";
|
|
|
|
|
+import MemberMessageModal from "@/views/room/modules/membergoodsmanage/membermessageModal";
|
|
|
|
|
+import LeaseGoodsModal from "@/views/room/modules/leasegoods/leasegoodsModal";
|
|
|
import { match } from "assert";
|
|
import { match } from "assert";
|
|
|
const columns = [
|
|
const columns = [
|
|
|
// {
|
|
// {
|
|
@@ -535,7 +539,14 @@ const date = new Date();
|
|
|
const endDate = new Date(date.setDate(date.getDate() + 1));
|
|
const endDate = new Date(date.setDate(date.getDate() + 1));
|
|
|
export default {
|
|
export default {
|
|
|
name: "BusMeetingRoomForm",
|
|
name: "BusMeetingRoomForm",
|
|
|
- components: { CustomerModal, RefundModal, PaymentModal, FeeModal },
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ CustomerModal,
|
|
|
|
|
+ RefundModal,
|
|
|
|
|
+ PaymentModal,
|
|
|
|
|
+ FeeModal,
|
|
|
|
|
+ MemberMessageModal,
|
|
|
|
|
+ LeaseGoodsModal,
|
|
|
|
|
+ },
|
|
|
props: {
|
|
props: {
|
|
|
//表单禁用
|
|
//表单禁用
|
|
|
disabled: {
|
|
disabled: {
|
|
@@ -700,6 +711,34 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ addLeaseGoods() {
|
|
|
|
|
+ if (this.selectRoomId === "1") {
|
|
|
|
|
+ this.$message.warning("请先选择房间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ var index = this.model.livingRoomIds.findLastIndex(
|
|
|
|
|
+ (t) => t.roomId == this.selectRoomId
|
|
|
|
|
+ );
|
|
|
|
|
+ var find = this.model.livingRoomIds[index];
|
|
|
|
|
+ this.$refs.modalLeaseGoods.add();
|
|
|
|
|
+ this.$refs.modalLeaseGoods.title = "客人留言";
|
|
|
|
|
+ this.$refs.modalLeaseGoods.disableSubmit = false;
|
|
|
|
|
+ this.$refs.modalLeaseGoods.livingOrderId = find.livingOrder.id;
|
|
|
|
|
+ },
|
|
|
|
|
+ addMessage() {
|
|
|
|
|
+ if (this.selectRoomId === "1") {
|
|
|
|
|
+ this.$message.warning("请先选择房间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ var index = this.model.livingRoomIds.findLastIndex(
|
|
|
|
|
+ (t) => t.roomId == this.selectRoomId
|
|
|
|
|
+ );
|
|
|
|
|
+ var find = this.model.livingRoomIds[index];
|
|
|
|
|
+ this.$refs.modalMemberMessage.add();
|
|
|
|
|
+ this.$refs.modalMemberMessage.title = "客人留言";
|
|
|
|
|
+ this.$refs.modalMemberMessage.disableSubmit = false;
|
|
|
|
|
+ this.$refs.modalMemberMessage.livingOrderId = find.livingOrder.id;
|
|
|
|
|
+ },
|
|
|
addProjectFee() {
|
|
addProjectFee() {
|
|
|
var index = this.model.livingRoomIds.findLastIndex(
|
|
var index = this.model.livingRoomIds.findLastIndex(
|
|
|
(t) => t.roomId == this.selectRoomId
|
|
(t) => t.roomId == this.selectRoomId
|
|
@@ -967,6 +1006,32 @@ export default {
|
|
|
this.model = Object.assign({}, record);
|
|
this.model = Object.assign({}, record);
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
},
|
|
},
|
|
|
|
|
+ handleLeaveNotSettle() {
|
|
|
|
|
+ if (this.selectRoomId === "1") {
|
|
|
|
|
+ this.$message.warning("请先选择房间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ var index = this.model.livingRoomIds.findLastIndex(
|
|
|
|
|
+ (t) => t.roomId == this.selectRoomId
|
|
|
|
|
+ );
|
|
|
|
|
+ var find = this.model.livingRoomIds[index];
|
|
|
|
|
+ httpAction(
|
|
|
|
|
+ "/business/busRoomBookingOrders/leave-not-settle?bookingOrderId=" +
|
|
|
|
|
+ find.bookingOrdersId +
|
|
|
|
|
+ "&livingOrderId=" +
|
|
|
|
|
+ find.livingOrder.id,
|
|
|
|
|
+ {},
|
|
|
|
|
+ "post"
|
|
|
|
|
+ ).then((res) => {
|
|
|
|
|
+ if (res.success) {
|
|
|
|
|
+ this.$message.success(res.message);
|
|
|
|
|
+ this.getBookingOrderInfo();
|
|
|
|
|
+ this.$emit("ok");
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.warning(res.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
const that = this;
|
|
const that = this;
|
|
|
that.$message.warning("未实现");
|
|
that.$message.warning("未实现");
|