Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Mediation-Frontend into hhl
This commit is contained in:
@@ -39,19 +39,19 @@
|
||||
<el-col :span="24">
|
||||
<el-form-item label="申请人案件证据:">
|
||||
<div v-if="applicateArr.length == 0">申请人暂未提供证据!</div>
|
||||
<div v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
|
||||
<div v-for="(item, index) in applicateArr" :key="index" v-if="item.annexType == 2">
|
||||
<a href="#" @click="toFile(item, index)" style="color: blue">{{ item.annexName }}</a>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24" v-if="mediationType">
|
||||
<el-form-item label="调解结果:">
|
||||
<el-radio-group v-model="mediaResult" @change="resultsMediation">
|
||||
<el-radio :label="1">达成调解</el-radio>
|
||||
<el-radio :label="2">未达成调解</el-radio>
|
||||
<el-radio :label="3">未达成调解但不在争议</el-radio>
|
||||
<el-radio :label="4">未达成调解但同意引入仲裁</el-radio>
|
||||
<el-radio :label="5">达成和解</el-radio>
|
||||
<el-radio-group v-model="mediaResult" :disabled="!isSecretaryRole" @change="resultsMediation">
|
||||
<el-radio :label="1">达成调解</el-radio>
|
||||
<el-radio :label="2">未达成调解</el-radio>
|
||||
<el-radio :label="3">未达成调解但不在争议</el-radio>
|
||||
<el-radio :label="4">未达成调解但同意引入仲裁</el-radio>
|
||||
<el-radio :label="5">达成和解</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -98,10 +98,10 @@
|
||||
<!-- v-if="!mediationType" -->
|
||||
<el-col :span="24">
|
||||
<el-form-item label="上传调解书">
|
||||
<el-upload class="upload-demo" accept=".png,.jpg,.doc,.docx,.txt,.pdf" ref="upload" :action="UploadUrl()" :headers="headers" :data="filedata"
|
||||
:on-preview="handlePreview" :on-remove="handleRemove" :limit="1" :on-change="beforeUpload" :on-success="handlSuccess"
|
||||
:file-list="fileList">
|
||||
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
||||
<el-upload class="upload-demo" accept=".png,.jpg,.doc,.docx,.txt,.pdf" ref="upload" :action="UploadUrl()"
|
||||
:headers="headers" :data="filedata" :on-preview="handlePreview" :on-remove="handleRemove" :limit="1"
|
||||
:on-change="beforeUpload" :on-success="handlSuccess" :file-list="fileList">
|
||||
<el-button slot="trigger" size="small" :disabled="!isSecretaryRole" type="primary">选取文件</el-button>
|
||||
<!-- <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button> -->
|
||||
<div slot="tip" class="el-upload__tip">只能上传.jpg,png,.doc,docx,.txt,.pdf文件</div>
|
||||
</el-upload>
|
||||
@@ -109,16 +109,16 @@
|
||||
</el-col>
|
||||
<!-- </el-form> -->
|
||||
</el-form>
|
||||
<el-button @click="openmeeting" type="primary" v-if="mediationType">发起会议</el-button>
|
||||
<el-button @click="openmeeting" type="primary" v-if="mediationType">{{ isSecretaryRole ? '发起会议' :
|
||||
'进入会议' }}</el-button>
|
||||
<!-- v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'" -->
|
||||
<el-button @click="openArbitrationresults" type="primary"
|
||||
v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
|
||||
>确认会议结果</el-button>
|
||||
v-if="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'">确认会议结果</el-button>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="cancel" class="endbutton1" round>
|
||||
<span>取 消</span>
|
||||
</el-button>
|
||||
<el-button @click="submitMediation" :disabled="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
|
||||
<el-button v-if="isSecretaryRole" @click="submitMediation" :disabled="this.recordArr.length <= 0 && mediationData.mediationMethod == '1'"
|
||||
class="endbutton1" type="primary" round>
|
||||
<span>提 交</span>
|
||||
</el-button>
|
||||
@@ -131,7 +131,8 @@
|
||||
import {
|
||||
caseApplicationSelectById,
|
||||
mediation,
|
||||
confirmMeetingResult
|
||||
confirmMeetingResult,
|
||||
secretaryRoleByUserId
|
||||
} from "@/api/caseManagement/caseManagement.js";
|
||||
import { getUserProfile } from "@/api/system/user";
|
||||
import { reserveConferenceList } from "@/api/metting/metting.js";
|
||||
@@ -141,15 +142,15 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
loanStartDate: "",
|
||||
codes:null,
|
||||
codes: null,
|
||||
title: "线上调解",
|
||||
applicateArr: [],
|
||||
quiltArr: [],
|
||||
recordArr: [],
|
||||
recordArrMediate:[],
|
||||
recordArrMediate: [],
|
||||
roomId: null,
|
||||
startTime: null,
|
||||
mediaResult:1,
|
||||
mediaResult: 1,
|
||||
// isReconci:0,
|
||||
formData: {
|
||||
affiliate: {}
|
||||
@@ -164,8 +165,9 @@ export default {
|
||||
filedata: {
|
||||
annexType: 7,
|
||||
},
|
||||
fileList:[],
|
||||
attachList:[],
|
||||
fileList: [],
|
||||
attachList: [],
|
||||
isSecretaryRole: true,
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@@ -189,6 +191,14 @@ export default {
|
||||
},
|
||||
created() { },
|
||||
methods: {
|
||||
// 根据用户id查询是否为调解员
|
||||
secretaryRoleByUserIdFn() {
|
||||
secretaryRoleByUserId({
|
||||
userId: this.userId
|
||||
}).then(res => {
|
||||
this.isSecretaryRole = res.data.isSecretaryRole;
|
||||
})
|
||||
},
|
||||
/**上传地址*/
|
||||
UploadUrl() {
|
||||
return window.location.origin + "/API/common/upload";
|
||||
@@ -196,14 +206,14 @@ export default {
|
||||
handlePreview(file) {
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
|
||||
|
||||
},
|
||||
beforeUpload(flie, fileList) {
|
||||
this.fileList = fileList;
|
||||
},
|
||||
handlSuccess(res, file) {
|
||||
this.codes = res.code
|
||||
this.attachList = [{annexId:res.annexId}];
|
||||
this.attachList = [{ annexId: res.annexId }];
|
||||
// this.$set(this.mediationData, "attachList", {annexId:res.annexId});
|
||||
},
|
||||
/** 获取案件详情信息 */
|
||||
@@ -214,7 +224,7 @@ export default {
|
||||
res.data.caseAttachList.forEach(item => {
|
||||
if (item.annexType == 6) {
|
||||
this.recordArr.push(item);
|
||||
}else if(item.annexType == 7){
|
||||
} else if (item.annexType == 7) {
|
||||
this.recordArrMediate.push(item);
|
||||
}
|
||||
});
|
||||
@@ -225,6 +235,7 @@ export default {
|
||||
getUserProfile().then(response => {
|
||||
this.user = response.data.userName;
|
||||
this.userId = response.data.userId;
|
||||
this.secretaryRoleByUserIdFn();
|
||||
});
|
||||
},
|
||||
/** 发起会议 */
|
||||
@@ -250,10 +261,10 @@ export default {
|
||||
id: this.mediationData.id,
|
||||
caseFlowId: this.mediationData.caseFlowId,
|
||||
batchNumber: "",
|
||||
mediaResult:this.mediaResult,
|
||||
}).then(res =>{
|
||||
mediaResult: this.mediaResult,
|
||||
}).then(res => {
|
||||
caseApplicationSelectById({
|
||||
id: this.mediationData.id
|
||||
id: this.mediationData.id
|
||||
}).then(res => {
|
||||
res.data.caseAttachList.forEach(item => {
|
||||
if (item.annexType == 7) {
|
||||
@@ -286,26 +297,26 @@ export default {
|
||||
this.$modal.msgError("请上传调解书");
|
||||
return
|
||||
}
|
||||
let mediationVal ={}
|
||||
if (this.codes == 200){
|
||||
let mediationVal = {}
|
||||
if (this.codes == 200) {
|
||||
mediationVal = {
|
||||
id: this.mediationData.id,
|
||||
caseFlowId: this.mediationData.caseFlowId,
|
||||
attachList: this.attachList,
|
||||
// isReconci:this.isReconci,
|
||||
mediaResult:this.mediaResult,
|
||||
id: this.mediationData.id,
|
||||
caseFlowId: this.mediationData.caseFlowId,
|
||||
attachList: this.attachList,
|
||||
// isReconci:this.isReconci,
|
||||
mediaResult: this.mediaResult,
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
mediationVal = {
|
||||
id: this.mediationData.id,
|
||||
caseFlowId: this.mediationData.caseFlowId,
|
||||
mediaResult:this.mediaResult,
|
||||
id: this.mediationData.id,
|
||||
caseFlowId: this.mediationData.caseFlowId,
|
||||
mediaResult: this.mediaResult,
|
||||
}
|
||||
}
|
||||
this.mediationFn(mediationVal);
|
||||
},
|
||||
resultsMediation(){
|
||||
|
||||
resultsMediation() {
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user