裁决书上传无法更新问题

This commit is contained in:
hanchaobo
2024-05-20 16:56:38 +08:00
parent d4c5610f53
commit 7cf0427b56
4 changed files with 41 additions and 21 deletions
+8
View File
@@ -164,3 +164,11 @@ export function caseApplicationList(data) {
params: data
})
}
// 根据案件id查询当前登陆人是否为仲裁员
export function secretaryRoleByUserId(data) {
return request({
url: '/video/secretaryRoleByUserId',
method: 'get',
params: data
})
}
+8 -2
View File
@@ -5,7 +5,7 @@
<el-input style="width:180px" v-model="queryParams.caseNum" placeholder="请输入案件编号" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="案件批号" prop="caseNum">
<el-input style="width:180px" v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable @keyup.enter.native="handleQuery" />
<el-input style="width:180px" @input="handleInput" v-model="queryParams.batchNumber" placeholder="请输入案件批号" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
<!-- <el-form-item label="申请人" prop="applicantName"> -->
<!-- <el-input
@@ -150,7 +150,9 @@
<el-button size="mini" type="text" icon="el-icon-check" @click="courtreviewRow(scope.row)" v-if="scope.row.caseStatus == 5 &&
checkPermi(['caseManagement:list:checkgroup']) && btnStatus
">组庭审核</el-button>
<el-button size="mini" type="text" icon="el-icon-sort" @click="choosetrialmethodRow(scope.row)">审核仲裁方式</el-button>
<el-button size="mini" type="text" icon="el-icon-sort" @click="choosetrialmethodRow(scope.row)" v-if="scope.row.caseStatus == 7 &&
checkPermi(['caseManagement:list:checkarbitrationway']) && btnStatus
">审核仲裁方式</el-button>
<el-button size="mini" type="text" icon="el-icon-edit-outline" @click="adjudicaterecordRow(scope.row)" v-if="scope.row.caseStatus == 9 &&
scope.row.arbitratMethod == 2 &&
checkPermi(['caseManagement:list:hear']) && btnStatus
@@ -518,6 +520,10 @@ export default {
this.getInstitution();
},
methods: {
handleInput(event) {
const value = event;
this.queryParams.batchNumber = value.replace(/[^\d]/g, ''); // 去除非数字字符
},
cancel() {
this.visible = false;
},
@@ -184,7 +184,7 @@
<div>{{ startTime }}</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-col :span="24" v-if="submitFlag">
<el-form-item label="上传裁决书:">
<el-upload
class="upload-demo"
@@ -210,13 +210,13 @@
</el-upload>
</el-form-item>
</el-col>
<el-col :span="24">
<el-col :span="24" v-if="submitFlag">
<el-form-item label="上传庭审笔录:">
<el-upload
class="upload-demo"
ref="fileupload"
accept=".doc,.docx"
:action="UploadUrl()"
:action="UploadUrlsT()"
:on-success="handlSuccess"
:on-remove="handleRemove"
:on-preview="handlePreview"
@@ -242,7 +242,7 @@
<el-button
@click="openArbitrationresults"
type="primary"
v-if="this.awardArr.length <= 0"
v-if="this.awardArr.length <= 0 && submitFlag"
>确认会议结果</el-button>
<div slot="footer" class="dialog-footer">
<el-button
@@ -252,6 +252,7 @@
"
@click="submitResults"
:loading="loadingSub"
v-if="submitFlag"
>提交</el-button
>
<el-button @click="cancel" class="endbutton1"
@@ -468,24 +469,27 @@ import {
creatTrialRecord,
creatTrialRecordnew,
document,
changeCaseStatus
changeCaseStatus,
secretaryRoleByUserId
} from "@/api/caseManagement/caseManagement.js";
import { reserveConferenceList } from "@/api/meeting/index.js";
export default {
props: ["showtrialincourt", "adjudicatename", "form", "queryParams"],
data() {
return {
submitFlag: false,
formData: {},
headers: {
Authorization: "Bearer " + getToken(),
},
filedata: {
annexType: 7,
id: 0,
id: null,
},
filedatas: {
annexType: 3,
id:null
officeFlag:1,
caseId:null
},
upLife: "",
user: "",
@@ -560,6 +564,12 @@ export default {
},
created() {},
methods: {
// 根据案件id和用户id查询当前登陆人是否为仲裁员
secretaryRoleByUserIdFn(data){
secretaryRoleByUserId(data).then(res=>{
this.submitFlag = res.data.isSecretaryRole;
})
},
// 根据案件id查询会议号
reserveConferenceListFn(data) {
reserveConferenceList(data).then((res) => {
@@ -583,7 +593,6 @@ export default {
},
//裁决书文件
awardToFile(item) {
console.log(item,"LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL");
// window.open(
// window.location.origin + "/API" + this.awardArr[index].annexPath,
// "_black"
@@ -605,6 +614,7 @@ export default {
getUserProfile().then((response) => {
this.user = response.data.userName;
this.userId = response.data.userId;
this.secretaryRoleByUserIdFn({caseId:this.form.id,userId:this.userId})
});
},
// 打开会议
@@ -714,10 +724,6 @@ export default {
});
}
},
// 上传庭审笔录
UploadUrl() {
return window.location.origin + "/API/evidence/uploadRecord";
},
// 文件上传成功
handlSuccess(res, file) {
// this.fileList.push(file);
@@ -760,6 +766,9 @@ export default {
},
// 上传裁决书
UploadUrls() {
return window.location.origin + "/API/video/upload";
},
UploadUrlsT() {
return window.location.origin + "/API/evidence/uploadRecord";
},
beforeRemoves(file,fileList){
@@ -780,17 +789,14 @@ export default {
this.adjudicatename.caseAttachList = res.data.caseAttachList;
this.adjudicatename.caseAttachList.forEach(item=>{
if(item.annexType==3){
this.awardArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
this.awardArr.push(item);
}
})
});
},
beforeAvatarUploads(){
this.filedatas.id = this.formData.id;
this.filedatas.caseId = this.formData.id;
}
},
};
+2 -2
View File
@@ -12,8 +12,8 @@ const name = process.env.VUE_APP_TITLE || '智慧仲裁管理系统' // 网页
const port = process.env.port || process.env.npm_config_port || 80 // 端口
// const API = 'http://121.40.189.20:9001' //生产
// const API = 'http://121.40.189.20:8001' //测试
const API = 'http://172.16.1.26:8001' //Bs
const API = 'http://121.40.189.20:8001' //测试
// const API = 'http://172.16.1.26:8001' //Bs
// const API = 'http://192.168.3.77:9001' //Q
// const API = 'http://172.16.1.26:8001' //W