证据目录界面,案件导入问题

This commit is contained in:
fz
2023-10-24 16:27:30 +08:00
parent bd6cf08d7a
commit b10e21505b
10 changed files with 345 additions and 64 deletions
@@ -425,17 +425,17 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="被申请人出生年月日:" :prop="'paymentArr1.' + index + '.responBirth'" :rules="[
<el-form-item label="被申请人出生年月日:" :prop="'paymentArr1.' + index + '.responBirth'" :rules="[
{
required: true,
message: '被申请人出生年月日不能为空',
trigger: 'blur',
},
]">
<el-date-picker v-model="itm.responBirth" type="datetime" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
<el-date-picker v-model="itm.responBirth" type="datetime" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<div style="display: inline-flex">
<div class="infoIcon"></div>
@@ -573,8 +573,8 @@ export default {
nameAgent: "",
contactTelphoneAgent: "",
contactAddressAgent: "",
responSex:1,
responBirth:""
responSex: 1,
responBirth: ""
},
],
}, //被申请人主体信息
@@ -874,6 +874,9 @@ export default {
...this.form3.paymentArr1,
];
this.formData.caseAttachList = [...this.caseAttachListArr];
this.formData.caseAffiliates[1].responBirth = moment(this.formData.caseAffiliates[1].responBirth).format(
"YYYY-MM-DD HH:mm:ss"
);
if (this.formData.id) {
editCaseApply({
...this.formData,
@@ -56,12 +56,11 @@ export default {
submitForm(val) {
let paramsdata = {
opinion: val,
ids: [this.choosetrialmethodata.id]
};
// let id = {
// id: this.choosetrialmethodata.id,
// };
arbitrateMethod(paramsdata)
let id = {
id: this.choosetrialmethodata.id,
};
arbitrateMethod(paramsdata,id)
.then((res) => {
this.$modal.msgSuccess("提交成功");
this.cancel();
@@ -1,13 +1,13 @@
<template>
<div>
<el-dialog :title="operateTitle" :visible="operateVisable" @close="cancel" center :distroy-on-close="true">
<el-table v-loading="loading" :data="dataList" style="width: 100%">
<el-table v-loading="loading" :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column type="selection">
</el-table-column>
<el-table-column label="序号" type="index" align="center">
<template slot-scope="scope">
<span>{{
(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
(queryParamsData.pageNum - 1) * queryParamsData.pageSize + scope.$index + 1
}}</span>
</template>
</el-table-column>
@@ -25,17 +25,33 @@
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getcaseApply(queryParams)" />
<div class="radiobox" v-if="operateStatus == 2">
<el-radio-group v-model="radio">
<el-radio :label="1">同意</el-radio>
<el-radio :label="2">拒绝</el-radio>
</el-radio-group>
</div>
<pagination v-show="total > 0" :total="total" :page.sync="queryParamsData.pageNum"
:limit.sync="queryParamsData.pageSize" @pagination="getcaseApply(queryParamsData)" />
<div slot="footer" class="dialog-footer">
<el-button @click="cancel" class="endbutton"><span>取 消</span></el-button>
<el-button @click="submitBatch" type="primary" class="endbutton" :disabled="dataList.length == 0"><span>确 认</span></el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
caseApply,
caseApply,
submitCaseApply,
removeCaseApply,
submitCaseApplicationCheck
} from "@/api/caseAccess/caseEntry";
import {
adjudicationCaseFile,
} from "@/api/awardManagement/awardManagement";
export default {
props: ["operateVisable", "operateData", "operateTitle"],
props: ["operateVisable", "operateData", "operateTitle", 'operateStatus','queryParams'],
data() {
return {
// 遮罩层
@@ -43,19 +59,21 @@ export default {
// 总条数
total: 0,
// 查询参数
queryParams: {
queryParamsData: {
caseStatus: null,
pageNum: 1,
pageSize: 10,
},
// 表格数据
dataList: [],
batchData: [],
radio:1
};
},
watch: {
operateVisable(val) {
if (val) {
this.getcaseApply()
this.getcaseApply(this.queryParamsData)
}
}
},
@@ -63,12 +81,72 @@ export default {
},
methods: {
// 选择勾选框
handleSelectionChange(val) {
this.batchData = [];
val.forEach(item => {
this.batchData.push(item.id)
})
},
cancel() {
this.$emit("cancelOperate");
},
// 批量操作
submitBatch() {
if (this.operateStatus == 0) {
this.submitCaseApplyFn({ ids: this.batchData })
} else if (this.operateStatus == 1) {
this.removeCaseApplyFn({ ids: this.batchData })
} else if (this.operateStatus == 2) {
this.submitCaseApplicationCheckFn({ ids: this.batchData,agreeOrNotCheck:this.radio })
}else if (this.operateStatus == 3) {
this.adjudicationCaseFileFn({ ids: this.batchData })
}
},
// 批量提交
submitCaseApplyFn(data) {
submitCaseApply(data).then(res => {
this.$modal.msgSuccess("提交成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
},
// 批量删除
removeCaseApplyFn(data) {
removeCaseApply(data).then(res => {
this.$modal.msgSuccess("删除成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
},
// 批量立案审查
submitCaseApplicationCheckFn(data){
submitCaseApplicationCheck(data).then(res=>{
this.$modal.msgSuccess("立案审查成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
},
//批量归档
adjudicationCaseFileFn(data){
adjudicationCaseFile(data).then(res=>{
this.$modal.msgSuccess("归档成功");
this.cancel();
this.$emit("getcaseApply", this.queryParams);
})
},
/** 查询列表 */
getcaseApply(val) {
this.loading = true;
if (this.operateStatus == 0) {
this.queryParamsData.caseStatus = 0
} else if (this.operateStatus == 1) {
this.queryParamsData.caseStatus = 0
} else if (this.operateStatus == 2) {
this.queryParamsData.caseStatus = 1
}else if (this.operateStatus == 3) {
this.queryParamsData.caseStatus = 16
}
caseApply(val).then((response) => {
this.dataList = response.rows;
this.total = response.total;
@@ -84,4 +162,7 @@ export default {
display: flex;
flex-wrap: wrap;
}
.radiobox{
margin-top: 30px;
}
</style>
@@ -0,0 +1,103 @@
<template>
<div>
<el-dialog title="上传证据目录" :visible="uploadCaseVisable" @close="cancel" center :distroy-on-close="true">
<el-upload class="upload-demo" ref="upload" action="https://jsonplaceholder.typicode.com/posts/"
:on-preview="handlePreview" :on-remove="handleRemove" :file-list="fileList" :auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">上传到服务器</el-button>
</el-upload>
<div class="title">证据目录结构</div>
<el-tree :data="data" @node-click="handleNodeClick"></el-tree>
</el-dialog>
</div>
</template>
<!-- hearDate -->
<script>
// import { updateHeardate } from '@/api/caseManagement/caseManagement'
export default {
props: ["uploadCaseVisable", "uploadCaseData"],
data() {
return {
fileList: [],
data: [{
label: '寓件编号_中请人名称 / 中请人',
children: [
{
label: '1_货款申调表pdf',
},
{
label: '2_款白同pdf',
},
{
label: '3_抵押证明材林pdt',
},
{
label: '5.贷款利期罚息计算表pdf',
},
{
label: '6.数字签名验证报告.pdl',
},
{
label: '7_律师费明妞报售.pdt',
},
]
},
{
label: '寓件编号_中请人名称 / 中请人',
children: [
{
label: '1_货款申调表pdf',
},
{
label: '2_款白同pdf',
},
{
label: '3_抵押证明材林pdt',
},
{
label: '5.贷款利期罚息计算表pdf',
},
{
label: '6.数字签名验证报告.pdl',
},
{
label: '7_律师费明妞报售.pdt',
},
]
}],
};
},
watch: {
},
created() {
},
methods: {
cancel() {
this.$emit("uploadCaseCancel");
},
submitUpload() {
this.$refs.upload.submit();
},
handleRemove(file, fileList) {
console.log(file, fileList);
},
handlePreview(file) {
console.log(file);
},
handleNodeClick(data) {
console.log(data);
}
},
};
</script>
<style lang="scss" scoped>
.title {
margin-top: 30px;
margin-bottom: 30px;
font-size: 18px;
font-weight: 600;
}
</style>