|
|
@@ -312,6 +312,7 @@
|
|
|
/><a-button
|
|
|
type="link"
|
|
|
:disabled="selectedRowKeys1.length == 0 || selectRoomId == '1'"
|
|
|
+ @click="tuidan"
|
|
|
>
|
|
|
退单
|
|
|
</a-button>
|
|
|
@@ -502,7 +503,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { httpAction, getAction, deleteAction } from "@/api/manage";
|
|
|
+import { httpAction, getAction, deleteAction, postAction } from "@/api/manage";
|
|
|
import { validateDuplicateValue } from "@/utils/util";
|
|
|
import moment from "moment";
|
|
|
import CustomerModal from "./CustomerModal.vue";
|
|
|
@@ -705,16 +706,19 @@ export default {
|
|
|
}, 0);
|
|
|
},
|
|
|
paymentAmount() {
|
|
|
- var list = this.paymentList.filter((t) => t.subjectType !== 5);
|
|
|
- var amount = list.reduce(function (total, item) {
|
|
|
- return total + item.money;
|
|
|
- }, 0);
|
|
|
+ // var list = this.paymentList.filter((t) => t.subjectType !== 5);
|
|
|
+ // var amount = list.reduce(function (total, item) {
|
|
|
+ // return total + item.money;
|
|
|
+ // }, 0);
|
|
|
|
|
|
- var list2 = this.paymentList.filter((t) => t.subjectType == 5);
|
|
|
- var amount2 = list2.reduce(function (total, item) {
|
|
|
+ // var list2 = this.paymentList.filter((t) => t.subjectType == 5);
|
|
|
+ // var amount2 = list2.reduce(function (total, item) {
|
|
|
+ // return total + item.money;
|
|
|
+ // }, 0);
|
|
|
+ var amount = this.paymentList.reduce(function (total, item) {
|
|
|
return total + item.money;
|
|
|
}, 0);
|
|
|
- return amount - amount2;
|
|
|
+ return amount;
|
|
|
},
|
|
|
btnSisabled() {
|
|
|
var index = this.model.livingRoomIds.findLastIndex(
|
|
|
@@ -928,6 +932,19 @@ export default {
|
|
|
this.$refs.modalFeeForm.title = "增加消费项目";
|
|
|
this.$refs.modalFeeForm.disableSubmit = false;
|
|
|
},
|
|
|
+ tuidan() {
|
|
|
+ postAction(
|
|
|
+ "/business/busRoomBookingOrders/退你麻痹单狗东西",
|
|
|
+ this.selectedRowKeys1
|
|
|
+ ).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success("退单成功");
|
|
|
+ this.getBookingOrderInfo();
|
|
|
+ } else {
|
|
|
+ this.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
partialSettle() {
|
|
|
var list2 = this.feesList.filter((t) =>
|
|
|
this.selectedRowKeys1.includes(t.id)
|
|
|
@@ -997,6 +1014,16 @@ export default {
|
|
|
msg = "点餐";
|
|
|
} else if (text == 8) {
|
|
|
msg = "夜审房费";
|
|
|
+ } else if (text == 9) {
|
|
|
+ msg = "会议室";
|
|
|
+ } else if (text == 10) {
|
|
|
+ msg = "手工房费";
|
|
|
+ } else if (text == 11) {
|
|
|
+ msg = "水电煤抄表";
|
|
|
+ } else if (text == 12) {
|
|
|
+ msg = "赔偿费";
|
|
|
+ } else if (text == 13) {
|
|
|
+ msg = "退单结账";
|
|
|
}
|
|
|
return msg;
|
|
|
},
|