|
|
@@ -57,12 +57,13 @@
|
|
|
style="float: left; overflow: hidden"
|
|
|
class="table-page-search-submitButtons"
|
|
|
>
|
|
|
- <a-button
|
|
|
+ <!--先不实现增加预定功能-->
|
|
|
+ <!-- <a-button v-if="model.roomSchedule.billStatus==0"
|
|
|
@click="handleAdd"
|
|
|
type="danger"
|
|
|
style="margin-left: 8px"
|
|
|
>增加预定</a-button
|
|
|
- >
|
|
|
+ > -->
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -115,26 +116,32 @@
|
|
|
</template>
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a @click="handleEdit(record)">全部档期</a>
|
|
|
+ <a @click="handleDetail(record)">全部档期</a>
|
|
|
<a-divider type="vertical" />
|
|
|
<template v-if="record.status != 0 && record.billStatus == 0">
|
|
|
- <a @click="handleEdit(record)">结账</a>
|
|
|
+ <a @click="handleSettle(record)">结账</a>
|
|
|
<a-divider type="vertical"
|
|
|
/></template>
|
|
|
+ <template v-if="record.status == 0">
|
|
|
<a @click="handleEdit(record)">修改</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical" /></template>
|
|
|
<template v-if="record.status == 0">
|
|
|
- <a @click="handleEdit(record)">确认</a>
|
|
|
+ <a @click="batchConfirm(record)">确认</a>
|
|
|
<a-divider type="vertical" />
|
|
|
</template>
|
|
|
- <a @click="handleEdit(record)">删除</a>
|
|
|
+ <a v-if="record.status == 0" @click="handleEdit(record)">删除</a>
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
<bus-meeting-room-schedule-edit-modal
|
|
|
ref="modalForm"
|
|
|
- @ok="modalFormOk"
|
|
|
+ @ok="modalFormOk2($event)"
|
|
|
></bus-meeting-room-schedule-edit-modal>
|
|
|
+ <meeting-room-schedule-detail-modal
|
|
|
+ ref="modalMeetingRoomScheduleDetail"
|
|
|
+ :meetingRoomScheduleId="meetingRoomScheduleId"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></meeting-room-schedule-detail-modal>
|
|
|
</a-card>
|
|
|
</template>
|
|
|
|
|
|
@@ -143,13 +150,16 @@ import "@/assets/less/TableExpand.less";
|
|
|
import { mixinDevice } from "@/utils/mixin";
|
|
|
import { JeecgListMixin } from "@/mixins/JeecgListMixin";
|
|
|
import BusMeetingRoomScheduleEditModal from "./BusMeetingRoomScheduleEditModal";
|
|
|
-import { httpAction, getAction } from "@/api/manage";
|
|
|
+import meetingRoomScheduleDetailModal from "./meetingRoomScheduleDetail/meetingRoomScheduleDetailModal";
|
|
|
+
|
|
|
+import { httpAction, getAction, postAction } from "@/api/manage";
|
|
|
|
|
|
export default {
|
|
|
name: "BusMarketCouponsUsedList",
|
|
|
// mixins: [ mixinDevice],
|
|
|
components: {
|
|
|
- BusMeetingRoomScheduleEditModal
|
|
|
+ BusMeetingRoomScheduleEditModal,
|
|
|
+ meetingRoomScheduleDetailModal,
|
|
|
},
|
|
|
props: {
|
|
|
couponsId: {
|
|
|
@@ -159,6 +169,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ meetingRoomScheduleId: "",
|
|
|
description: "",
|
|
|
model: {
|
|
|
detail: { meetingRoomId: "", meetingDate: "", meetingDatev: "" },
|
|
|
@@ -216,12 +227,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
url: {
|
|
|
- list:
|
|
|
- "/business/busMarketCouponsCashUsed/list?couponsId=" + this.couponsId,
|
|
|
- delete: "/business/busMarketCouponsCashUsed/delete",
|
|
|
- deleteBatch: "/business/busMarketCouponsCashUsed/deleteBatch",
|
|
|
- exportXlsUrl: "/business/busMarketCouponsCashUsed/exportXls",
|
|
|
- importExcelUrl: "business/busMarketCouponsCashUsed/importExcel",
|
|
|
+ confirmBatch: "/business/busMeetingRoomScheduleDetail/confirmBatchByMeetingRoomScheduleId",
|
|
|
},
|
|
|
dictOptions: {},
|
|
|
superFieldList: [],
|
|
|
@@ -252,14 +258,54 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- modalFormOk() {
|
|
|
+ handleSettle(){
|
|
|
+ this.$message.error("结账功能暂无实现");
|
|
|
+ },
|
|
|
+ handleAdd(){
|
|
|
+
|
|
|
+ },
|
|
|
+ batchConfirm(record) {
|
|
|
+ if (!this.url.confirmBatch) {
|
|
|
+ this.$message.error("请设置url.confirmBatch!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var that = this;
|
|
|
+ that.loading = true;
|
|
|
+ postAction(that.url.confirmBatch, {
|
|
|
+ id: record.id,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ that.$message.success(res.message);
|
|
|
+ that.dataSource = [
|
|
|
+ Object.assign({}, that.model.roomSchedule, {
|
|
|
+ status: 1,
|
|
|
+ }),
|
|
|
+ ];
|
|
|
+ that.$emit("ok");
|
|
|
+ } else {
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ that.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ modalFormOk2(record) {
|
|
|
+ console.log("record", record);
|
|
|
+ this.dataSource = [Object.assign({}, record)];
|
|
|
+ this.$emit("ok");
|
|
|
+ },
|
|
|
+ modalFormOk(){
|
|
|
+
|
|
|
},
|
|
|
add() {
|
|
|
this.edit(this.modelDefault);
|
|
|
},
|
|
|
edit(record) {
|
|
|
this.model = Object.assign({}, record);
|
|
|
- delete this.model.roomSchedule.createTime
|
|
|
+ delete this.model.roomSchedule.createTime;
|
|
|
this.dataSource = [
|
|
|
Object.assign({}, this.model.roomSchedule, {
|
|
|
status: this.model.detail.status,
|
|
|
@@ -267,35 +313,18 @@ export default {
|
|
|
];
|
|
|
this.visible = true;
|
|
|
},
|
|
|
- handleEdit(record){
|
|
|
+ handleEdit(record) {
|
|
|
this.$refs.modalForm.edit(record);
|
|
|
this.$refs.modalForm.title = "编辑";
|
|
|
this.$refs.modalForm.disableSubmit = false;
|
|
|
},
|
|
|
- // handleEdit(item) {
|
|
|
- // var that = this;
|
|
|
- // this.$confirm({
|
|
|
- // title: "确认作废",
|
|
|
- // content: "是否作废?",
|
|
|
- // onOk: function () {
|
|
|
- // httpAction(
|
|
|
- // "/business/busMarketCouponsCashUsed/voided",
|
|
|
- // { id: item.id },
|
|
|
- // "put"
|
|
|
- // )
|
|
|
- // .then((res) => {
|
|
|
- // if (res.success) {
|
|
|
- // that.$message.success(res.message);
|
|
|
- // item.statusName = "已作废";
|
|
|
- // } else {
|
|
|
- // that.$message.warning(res.message);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // .finally(() => {});
|
|
|
- // },
|
|
|
- // onCancel: function () {},
|
|
|
- // });
|
|
|
- // },
|
|
|
+ handleDetail(record) {
|
|
|
+ console.log("record", record);
|
|
|
+ this.meetingRoomScheduleId = record.id;
|
|
|
+ this.$refs.modalMeetingRoomScheduleDetail.add(record);
|
|
|
+ this.$refs.modalMeetingRoomScheduleDetail.title = "档期列表预定确认";
|
|
|
+ this.$refs.modalMeetingRoomScheduleDetail.disableSubmit = true;
|
|
|
+ },
|
|
|
initDictConfig() {},
|
|
|
getSuperFieldList() {
|
|
|
let fieldList = [];
|
|
|
@@ -363,11 +392,6 @@ export default {
|
|
|
fieldList.push({ type: "date", value: "usedTime", text: "使用时间" });
|
|
|
this.superFieldList = fieldList;
|
|
|
},
|
|
|
- handleAdd() {
|
|
|
- this.$refs.modalForm.add(this.ipagination.total, this.couponsId);
|
|
|
- this.$refs.modalForm.title = "优惠券生成";
|
|
|
- this.$refs.modalForm.disableSubmit = false;
|
|
|
- },
|
|
|
},
|
|
|
};
|
|
|
</script>
|