This commit is contained in:
gyj
2024-05-16 16:07:58 +08:00
3 changed files with 44 additions and 35 deletions
@@ -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,7 +57,7 @@
</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>
@@ -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: {
@@ -199,8 +200,8 @@ export default {
this.getUser(); this.getUser();
} }
}, },
recordArrMediate(val){ recordArrMediate(val) {
if(val.length >= 1){ if (val.length >= 1) {
this.selectRoido = false; this.selectRoido = false;
} }
} }
@@ -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;
}); });
}, },
@@ -340,7 +345,7 @@ export default {
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,
} }
@@ -376,6 +381,7 @@ export default {
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;
+3
View File
@@ -39,6 +39,9 @@ export default {
) )
.then((res) => { .then((res) => {
this.config = res.data; this.config = res.data;
this.config.editorConfig.callbackUrl = this.config.editorConfig.callbackUrl + "/" + id;
console.log(this.config,"OOOOOOOOOOOOOOOOOOOOOOOOOOO");
// this.config.callbackUrl = this.config.callbackUrl + `/${this.userId}`; // this.config.callbackUrl = this.config.callbackUrl + `/${this.userId}`;
var docEditor = new DocsAPI.DocEditor("placeholder", this.config); var docEditor = new DocsAPI.DocEditor("placeholder", this.config);
}); });
+2 -2
View File
@@ -11,8 +11,8 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口
const API = 'http://121.40.189.20:7001' //生产 // const API = 'http://121.40.189.20:7001' //生产
// const API = 'http://121.40.189.20:6001' //测试 const API = 'http://121.40.189.20:6001' //测试
// const API = 'http://192.168.3.18:6001' //B // const API = 'http://192.168.3.18:6001' //B
// const API = 'http://172.16.0.237:6001' //Q // const API = 'http://172.16.0.237:6001' //Q
// const API = 'http://172.16.1.26:7001' //w // const API = 'http://172.16.1.26:7001' //w