是否有调解编辑only office权限

This commit is contained in:
hanchaobo
2024-05-13 13:50:06 +08:00
parent afb49528c1
commit 0ebb84bab1
@@ -1,6 +1,7 @@
<template> <template>
<div> <div>
<el-dialog :title="title" :visible="mediationVisable" @close="cancel" center :distroy-on-close="true" width="1000px"> <el-dialog :title="title" :visible="mediationVisable" @close="cancel" center :distroy-on-close="true"
width="1000px">
<el-form ref="form" :model="formData" label-width="180px"> <el-form ref="form" :model="formData" label-width="180px">
<div class="caseInfo">案件信息:</div> <div class="caseInfo">案件信息:</div>
<el-divider></el-divider> <el-divider></el-divider>
@@ -56,10 +57,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="是否用印申请" v-if="formData.mediaResult == 1&& mediationData.mediationMethod=='1'"> <el-form-item label="是否用印申请" v-if="formData.mediaResult == 1 && mediationData.mediationMethod == '1'">
<el-radio-group v-model="formData.sealFlag" :disabled="!selectRoido"> <el-radio-group v-model="formData.sealFlag" :disabled="!selectRoido">
<el-radio :label="1">是</el-radio> <el-radio :label="1">是</el-radio>
<el-radio :label="0">否</el-radio> <el-radio :label="0">否</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -110,7 +111,7 @@
<!-- </el-form> --> <!-- </el-form> -->
</el-form> </el-form>
<el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' : <el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' :
'进入会议' }}</el-button> '进入会议' }}</el-button>
<el-button @click="openArbitrationresults" type="primary" <el-button @click="openArbitrationresults" type="primary"
v-if="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole">确认会议结果</el-button> v-if="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole">确认会议结果</el-button>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@@ -118,8 +119,8 @@
<span>取 消</span> <span>取 消</span>
</el-button> </el-button>
<el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation" <el-button v-if="isSecretaryRole" :loading="loadingSubmit" @click="submitMediation"
:disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole" class="endbutton1" :disabled="this.recordArrMediate.length <= 0 && mediationData.mediationMethod == '1' && isSecretaryRole"
type="primary" round> class="endbutton1" type="primary" round>
提 交 提 交
</el-button> </el-button>
</div> </div>
@@ -139,10 +140,10 @@ import { getUserProfile } from "@/api/system/user";
import { reserveConferenceList } from "@/api/metting/metting.js"; import { reserveConferenceList } from "@/api/metting/metting.js";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
export default { export default {
props: ["mediationVisable", "mediationData", "queryParams","applicant"], props: ["mediationVisable", "mediationData", "queryParams", "applicant"],
data() { data() {
return { return {
sealFlag:1, sealFlag: 1,
loanStartDate: "", loanStartDate: "",
codes: null, codes: null,
title: "线上调解", title: "线上调解",
@@ -156,8 +157,8 @@ export default {
// isReconci:0, // isReconci:0,
formData: { formData: {
affiliate: {}, affiliate: {},
mediaResult:1, mediaResult: 1,
sealFlag:1, sealFlag: 1,
}, },
user: "", user: "",
userId: null, userId: null,
@@ -168,13 +169,13 @@ export default {
}, },
filedata: { filedata: {
annexType: 7, annexType: 7,
isMediaBook:1, isMediaBook: 1,
}, },
fileList: [], fileList: [],
attachList: [], attachList: [],
isSecretaryRole: true, isSecretaryRole: true,
loadingSubmit: false, loadingSubmit: false,
selectRoido:true selectRoido: true
}; };
}, },
watch: { watch: {
@@ -196,11 +197,11 @@ export default {
this.caseApplicationSelectByIdFn({ this.caseApplicationSelectByIdFn({
id: this.mediationData.id id: this.mediationData.id
}); });
this.getUser(); this.getUser();
} }
}, },
recordArrMediate(val){ recordArrMediate(val) {
if(val.length >= 1){ if (val.length >= 1) {
this.selectRoido = false; this.selectRoido = false;
} }
} }
@@ -213,7 +214,7 @@ export default {
userId: this.userId, userId: this.userId,
caseId: this.mediationData.id caseId: this.mediationData.id
}).then(res => { }).then(res => {
this.isSecretaryRole = res.data.isSecretaryRole; this.isSecretaryRole = res.data.isSecretaryRole;
}) })
}, },
/**上传地址*/ /**上传地址*/
@@ -232,21 +233,21 @@ export default {
handlSuccess(res, file) { handlSuccess(res, file) {
this.codes = res.code this.codes = res.code
console.log(res) console.log(res)
this.attachList.push({ annexId: res.annexId,annexType:res.annexType}); this.attachList.push({ annexId: res.annexId, annexType: res.annexType });
// this.$set(this.mediationData, "attachList", {annexId:res.annexId}); // this.$set(this.mediationData, "attachList", {annexId:res.annexId});
}, },
/** 获取案件详情信息 */ /** 获取案件详情信息 */
caseApplicationSelectByIdFn(data) { caseApplicationSelectByIdFn(data) {
caseApplicationSelectById(data).then(res => { caseApplicationSelectById(data).then(res => {
if(res.data.mediaResult){ if (res.data.mediaResult) {
this.formData = res.data; this.formData = res.data;
}else{ } else {
this.formData = res.data; this.formData = res.data;
this.formData.mediaResult = 1; this.formData.mediaResult = 1;
} }
if(res.data.sealFlag==1||res.data.sealFlag==0){ if (res.data.sealFlag == 1 || res.data.sealFlag == 0) {
this.formData = res.data; this.formData = res.data;
}else{ } else {
this.formData = res.data; this.formData = res.data;
this.formData.sealFlag = 1; this.formData.sealFlag = 1;
} }
@@ -293,7 +294,7 @@ export default {
caseFlowId: this.mediationData.caseFlowId, caseFlowId: this.mediationData.caseFlowId,
batchNumber: "", batchNumber: "",
mediaResult: this.formData.mediaResult, mediaResult: this.formData.mediaResult,
sealFlag:this.formData.sealFlag sealFlag: this.formData.sealFlag
}).then(res => { }).then(res => {
caseApplicationSelectById({ caseApplicationSelectById({
id: this.mediationData.id id: this.mediationData.id
@@ -312,8 +313,12 @@ export default {
window.open(window.location.origin + "/API" + annexPath, "_black"); window.open(window.location.origin + "/API" + annexPath, "_black");
}, },
toFileMediate(val) { toFileMediate(val) {
if (this.checkPermi(['caseManagement:list:editOffice'])) {
this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 1 } })
} else {
this.$router.push({ path: '/onlyoffice', query: { id: val, flag: 0 } })
}
// window.open(window.location.origin + "/API" + annexPath, "_black"); // window.open(window.location.origin + "/API" + annexPath, "_black");
this.$router.push({ path: '/onlyoffice', query: {id:val,flag:1} })
}, },
/** 生成调解书 */ /** 生成调解书 */
mediationFn(data) { mediationFn(data) {
@@ -322,7 +327,7 @@ export default {
this.$emit("cancelMediation"); this.$emit("cancelMediation");
this.$emit("getList", this.queryParams); this.$emit("getList", this.queryParams);
this.loadingSubmit = false; this.loadingSubmit = false;
}).catch(err=>{ }).catch(err => {
this.loadingSubmit = false; this.loadingSubmit = false;
}); });
}, },
@@ -338,9 +343,9 @@ export default {
this.loadingSubmit = true; this.loadingSubmit = true;
} }
let mediationVal = {} let mediationVal = {}
if (this.codes == 200) { if (this.codes == 200) {
if(this.formData.mediaResult != 1){ if (this.formData.mediaResult != 1) {
this.sealFlag = 0 this.sealFlag = 0
} }
mediationVal = { mediationVal = {
@@ -350,13 +355,13 @@ export default {
mediaResult: this.formData.mediaResult, mediaResult: this.formData.mediaResult,
} }
} else { } else {
if(this.formData.mediaResult != 1){ if (this.formData.mediaResult != 1) {
this.sealFlag = 0 this.sealFlag = 0
} }
mediationVal = { mediationVal = {
id: this.mediationData.id, id: this.mediationData.id,
caseFlowId: this.mediationData.caseFlowId, caseFlowId: this.mediationData.caseFlowId,
sealFlag:this.sealFlag, sealFlag: this.sealFlag,
attachList: this.attachList, attachList: this.attachList,
mediaResult: this.formData.mediaResult, mediaResult: this.formData.mediaResult,
} }
@@ -370,12 +375,13 @@ export default {
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.steps { .steps {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
::v-deep .el-input--medium .el-input__inner { ::v-deep .el-input--medium .el-input__inner {
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;