演示问题修复(1.查看裁决书,2.视频开庭提交笔录,3.首页待办权限)

This commit is contained in:
Your Name
2023-10-15 16:26:11 +08:00
parent b1d0d4f599
commit 7819bc155a
8 changed files with 317 additions and 116 deletions
@@ -13,7 +13,7 @@
label-width="180px"
:disabled="true"
>
<p>案件信息:</p>
<div class="caseInfo">案件信息:</div>
<el-divider></el-divider>
<el-row>
<el-col :span="12">
@@ -299,7 +299,7 @@
</el-col>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">提交庭审笔录</el-button>
<el-button type="primary" @click="submitForm">提交仲裁结果</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
@@ -395,4 +395,8 @@ export default {
background: #ffffff;
border-radius: 20px;
}
.caseInfo {
font-size: 17px;
font-weight: 600;
}
</style>
@@ -12,7 +12,7 @@
label-width="180px"
:disabled="true"
>
<p>案件信息:</p>
<div class="caseInfo">案件信息:</div>
<el-divider></el-divider>
<el-row>
<el-col :span="12">
@@ -124,52 +124,59 @@
</el-form-item>
</el-col> -->
<el-col :span="24">
<el-form-item
label="申请人案件证据:"
>
<div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
<div v-else v-for="(item, index) in applicateArr" :key="index">
<a href="#" @click="toFile(item, index)" style="color: blue">
{{ item.annexName }}
</a>
</div>
</el-form-item>
<el-form-item label="申请人案件证据:">
<div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
<div v-else v-for="(item, index) in applicateArr" :key="index">
<a href="#" @click="toFile(item, index)" style="color: blue">
{{ item.annexName }}
</a>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item
label="被申请人案件证据:"
>
<el-form-item label="被申请人案件证据:">
<div v-if="quiltArr.length == 0">被申请人暂未提供证据!</div>
<div v-for="(item, index) in quiltArr" :key="index">
<a href="#" @click="toFile1(item, index)" style="color: blue">
{{ item.annexName }}
</a>
<a href="#" @click="toFile1(item, index)" style="color: blue">
{{ item.annexName }}
</a>
</div>
</el-form-item>
</el-form-item>
</el-col>
<!-- </el-form> -->
<el-col :span="24" v-if="recordArr.length > 0">
<el-form-item label="庭审笔录:">
<div
v-for="(item, index) in recordArr"
:key="index"
style="color: blue"
>
<a href="#" @click="toFile2(item, index)">{{ item.annexName }}</a>
</div>
</el-form-item>
</el-col>
<!-- </el-form> -->
</el-form>
<el-button @click="openmeeting" type="primary"
>发起会议
<!-- <iframe src="http://47.97.117.253:9005/#/">发起会议</iframe> -->
</el-button>
<el-button @click="openArbitrationresults" type="primary"
<el-button @click="openmeeting" type="primary">发起会议</el-button>
<el-button
@click="openArbitrationresults"
type="primary"
v-if="this.recordArr.length <= 0"
>生成庭审笔录</el-button
>
<div slot="footer" class="dialog-footer">
<!-- <el-button @click="submitForm" class="endbutton"
><span>结束审理</span></el-button
> -->
<el-button @click="openArbitrationresults" class="endbutton"
><span>提交庭审笔录</span></el-button
>
<div slot="footer" class="dialog-footer">
<el-button
class="endbutton"
:disabled="showsubmit && recordArr.length == 0"
@click="submitResults"
>提交</el-button
>
<el-button @click="cancel" class="endbutton1"
><span>关 闭</span></el-button
>
</div>
</el-dialog>
<el-dialog
title="提交庭审笔录"
title="生成庭审笔录"
:visible="showArbitrationresults"
@close="closeArbitrationresults"
center
@@ -283,7 +290,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="submitForm" class="endbutton">
<span>提交</span></el-button
<span>确定</span></el-button
>
<el-button @click="closeArbitrationresults" class="endbutton1"
><span>取 消</span></el-button
@@ -295,7 +302,11 @@
<script>
import { getUserProfile } from "@/api/system/user";
import { writtenHear } from "@/api/caseManagement/caseManagement.js";
import {
writtenHear,
creatTrialRecord,
document,
} from "@/api/caseManagement/caseManagement.js";
export default {
props: ["showtrialincourt", "adjudicatename", "form", "queryParams"],
@@ -305,33 +316,49 @@ export default {
user: "",
showArbitrationresults: false,
form2: {},
applicateArr: [],//申请人案件资料
quiltArr: [],//被申请人案件资料
applicateArr: [], //申请人案件资料
quiltArr: [], //被申请人案件资料
recordArr: [], //笔录附件
showsubmit: true, //生成庭审笔录,方可提交
annexName: "", //笔录文件名
annexPath: "", //笔录文件地址
};
},
watch: {
showtrialincourt: {
handler(val) {
if (val) {
this.formData = this.form;
this.formData = this.form;
this.applicateArr = [];
this.quiltArr = [];
setTimeout(() => {
this.adjudicatename.caseAttachList.forEach(item => {
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
}, 500);
this.recordArr = [];
setTimeout(() => {
if (this.adjudicatename.caseAttachList.length > 0) {
this.adjudicatename.caseAttachList.forEach((item) => {
// 申请人案件附件
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
// 被申请人案件附件
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
// 笔录生成附件
if (item.annexType == 7) {
this.recordArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
}
}, 1000);
}
},
},
@@ -340,7 +367,7 @@ export default {
this.getUser();
},
methods: {
// 详情显示,展示申请人案件文件
// 详情显示,展示申请人案件文件
toFile(item, index) {
window.open(
window.location.origin + "/API" + this.applicateArr[index].annexPath,
@@ -354,6 +381,13 @@ export default {
"_black"
);
},
// 庭审笔录附件
toFile2(item, index) {
window.open(
window.location.origin + "/API" + this.recordArr[index].annexPath,
"_black"
);
},
getUser() {
getUserProfile().then((response) => {
this.user = response.data.userName;
@@ -361,8 +395,9 @@ export default {
},
// 打开会议
openmeeting() {
// window.open('https://txroom.xayunmei.com');
window.open(`https://txroom.xayunmei.com/#/home?name=${this.user}&id=${this.formData.id}`);
window.open(
`https://txroom.xayunmei.com/#/home?name=${this.user}&id=${this.formData.id}`
);
},
// 提交仲裁结果
openArbitrationresults() {
@@ -371,10 +406,26 @@ export default {
closeArbitrationresults() {
this.showArbitrationresults = false;
},
// 提交庭审笔录弹框结果
submitForm() {
this.$refs["form2"].validate((valid) => {
if (valid) {
writtenHear({
// writtenHear({
// caseAppliId: this.formData.id,
// evidenDetermi: this.form2.evidenDetermi,
// factDetermi: this.form2.factDetermi,
// caseSketch: this.form2.caseSketch,
// arbitrateThink: this.form2.arbitrateThink,
// rulingFollows: this.form2.rulingFollows,
// })
// .then((res) => {
// this.$modal.msgSuccess("提交成功");
// this.cancel();
// this.closeArbitrationresults();
// this.$emit("getcaseApply", this.queryParams);
// })
// .catch((err) => {});
creatTrialRecord({
caseAppliId: this.formData.id,
evidenDetermi: this.form2.evidenDetermi,
factDetermi: this.form2.factDetermi,
@@ -383,10 +434,17 @@ export default {
rulingFollows: this.form2.rulingFollows,
})
.then((res) => {
res.data.caseAttachList.forEach((item) => {
if (item.annexType == 7) {
this.recordArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
this.$modal.msgSuccess("提交成功");
this.cancel();
this.showsubmit = false;
this.closeArbitrationresults();
this.$emit("getcaseApply", this.queryParams);
})
.catch((err) => {});
}
@@ -395,6 +453,20 @@ export default {
cancel() {
this.$emit("canceltrialincourt");
},
// 提交开庭审理结果
submitResults() {
console.log(this.formData.id, "this.formData.id");
let id = this.formData.id;
document({
id: id,
}).then((res) => {
console.log(res, "提交开庭审理结果");
if (res.code == 200) {
this.$emit("getcaseApply", this.queryParams);
this.cancel();
}
});
},
},
};
</script>
@@ -410,6 +482,7 @@ export default {
height: 37px;
background: #488de2;
border-radius: 19px;
color: #ffffff;
span {
width: 96px;
height: 15px;
@@ -425,13 +498,17 @@ export default {
background: #ffffff;
border: 1px solid #d0d0d0;
border-radius: 19px;
span {
width: 31px;
height: 13px;
font-size: 16px;
font-family: Microsoft YaHei;
font-weight: 400;
color: #959595;
}
// span {
// width: 31px;
// height: 13px;
// font-size: 16px;
// font-family: Microsoft YaHei;
// font-weight: 400;
color: #959595;
// }
}
.caseInfo {
font-size: 17px;
font-weight: 600;
}
</style>