公章bug

This commit is contained in:
fz
2023-11-25 17:57:10 +08:00
parent 25ca3ecf1c
commit cd97b06bd0
5 changed files with 93 additions and 17 deletions
@@ -27,9 +27,10 @@
<script>
import { updateHeardate } from '@/api/caseManagement/caseManagement'
import { getToken } from "@/utils/auth";
import { createRoomId, reservedConference } from '@/api/meeting/index'
import moment from "moment";
export default {
props: ["timeVisable", "timeData","queryParams"],
props: ["timeVisable", "timeData", "queryParams"],
data() {
return {
loanStartDate: "",
@@ -37,7 +38,8 @@ export default {
disabledDate(time) {
return time.getTime() < Date.now() - 8.64e7;
}
}
},
roomId: null
};
},
watch: {
@@ -55,19 +57,37 @@ export default {
cancel() {
this.$emit("cancelTime");
},
// 提交时间
updateHeardateFn(data) {
updateHeardate(data).then(res => {
this.$modal.msgSuccess("修改成功");
this.cancel();
this.$emit("getcaseApply",this.queryParams);
// 获取房间号
async createRoomIdFn(data) {
await createRoomId(data).then(res => {
this.roomId = res.data;
})
},
submitTime() {
// 预约会议
async reservedConferenceFn(data) {
await reservedConference(data).then(res => {
console.log(res, "PPPPPPPPPPPPPPPPPPPPPPPPP");
})
},
// 提交时间
async updateHeardateFn(data) {
await updateHeardate(data).then(res => {
this.$modal.msgSuccess("修改成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
},
async submitTime() {
this.loanStartDate = moment(
this.loanStartDate
).format("YYYY-MM-DD HH:mm:ss");
this.updateHeardateFn({
await this.createRoomIdFn({ caseId: this.timeData.id });
await this.reservedConferenceFn({
caseId: this.timeData.id,
roomId: this.roomId,
scheduleStartTime: this.loanStartDate,
})
await this.updateHeardateFn({
id: this.timeData.id,
hearDate: this.loanStartDate
})