|
|
@@ -259,15 +259,21 @@
|
|
|
<div style="display: flex">
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
<a-icon
|
|
|
- type="import"
|
|
|
+ type="tool"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
- /><a-button type="link"> 退单 </a-button>
|
|
|
+ /><a-button
|
|
|
+ type="link"
|
|
|
+ :disabled="selectRoomId == '1'"
|
|
|
+ @click="addProjectFee"
|
|
|
+ >
|
|
|
+ 增加消费
|
|
|
+ </a-button>
|
|
|
</div>
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
<a-icon
|
|
|
- type="tool"
|
|
|
+ type="import"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
- /><a-button type="link"> 补单 </a-button>
|
|
|
+ /><a-button type="link"> 退单 </a-button>
|
|
|
</div>
|
|
|
<div style="display: flex; flex-direction: column">
|
|
|
<a-icon
|
|
|
@@ -416,6 +422,7 @@
|
|
|
<customer-modal ref="modalCustomerForm" @ok="modalFormOk"></customer-modal>
|
|
|
<refund-modal ref="modalRefundForm" @ok="modalFormOk"></refund-modal>
|
|
|
<payment-modal ref="modalPaymentForm" @ok="modalFormOk"></payment-modal>
|
|
|
+ <fee-modal ref="modalFeeForm" @ok="modalFormOk"></fee-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -426,6 +433,7 @@ import moment from "moment";
|
|
|
import CustomerModal from "./CustomerModal.vue";
|
|
|
import RefundModal from "./RefundModal.vue";
|
|
|
import PaymentModal from "./PaymentModal.vue";
|
|
|
+import FeeModal from "./FeeModal";
|
|
|
import { match } from "assert";
|
|
|
const columns = [
|
|
|
// {
|
|
|
@@ -527,7 +535,7 @@ const date = new Date();
|
|
|
const endDate = new Date(date.setDate(date.getDate() + 1));
|
|
|
export default {
|
|
|
name: "BusMeetingRoomForm",
|
|
|
- components: { CustomerModal, RefundModal, PaymentModal },
|
|
|
+ components: { CustomerModal, RefundModal, PaymentModal, FeeModal },
|
|
|
props: {
|
|
|
//表单禁用
|
|
|
disabled: {
|
|
|
@@ -692,6 +700,16 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ addProjectFee() {
|
|
|
+ var index = this.model.livingRoomIds.findLastIndex(
|
|
|
+ (t) => t.roomId == this.selectRoomId
|
|
|
+ );
|
|
|
+ var livingRoom = this.model.livingRoomIds[index];
|
|
|
+ this.$refs.modalFeeForm.add();
|
|
|
+ this.$refs.modalFeeForm.livingOrderId = livingRoom.livingOrder.id;
|
|
|
+ this.$refs.modalFeeForm.title = "增加消费项目";
|
|
|
+ this.$refs.modalFeeForm.disableSubmit = false;
|
|
|
+ },
|
|
|
partialSettle() {
|
|
|
var list2 = this.feesList.filter((t) =>
|
|
|
this.selectedRowKeys1.includes(t.id)
|
|
|
@@ -754,11 +772,9 @@ export default {
|
|
|
msg = "优惠金额";
|
|
|
} else if (text == 5) {
|
|
|
msg = "结账收款";
|
|
|
- }
|
|
|
- else if (text == 6) {
|
|
|
+ } else if (text == 6) {
|
|
|
msg = "商品";
|
|
|
- }
|
|
|
- else if (text == 7) {
|
|
|
+ } else if (text == 7) {
|
|
|
msg = "点餐";
|
|
|
}
|
|
|
return msg;
|