|
|
|
|
@ -88,6 +88,7 @@
|
|
|
|
|
<el-button type="primary" @click="show = true" |
|
|
|
|
>数据导入 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="primary" @click="handleInvolvedIssue" >涉企涉冻导入</el-button> |
|
|
|
|
<el-badge |
|
|
|
|
:value="distributeList.length" |
|
|
|
|
class="ml-10" |
|
|
|
|
@ -534,6 +535,56 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
<el-dialog title="涉企涉冻" v-model="involvedIssueShow" width="60vw" :lock-scroll="false"> |
|
|
|
|
<div v-loading="involvedIssueLoading"> |
|
|
|
|
<el-upload |
|
|
|
|
drag |
|
|
|
|
:multiple="false" |
|
|
|
|
:auto-upload="false" |
|
|
|
|
:show-file-list="false" |
|
|
|
|
v-model:file-list="fileList" |
|
|
|
|
accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" |
|
|
|
|
class="mt-20" |
|
|
|
|
> |
|
|
|
|
<template v-if="fileList.length == 0"> |
|
|
|
|
<el-icon class="el-icon--upload"> |
|
|
|
|
<upload-filled/> |
|
|
|
|
</el-icon> |
|
|
|
|
<div class="el-upload__text"> |
|
|
|
|
<p>点击或拖拽文件到此区域上传</p> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<el-icon class="el-icon--upload" |
|
|
|
|
><Select |
|
|
|
|
/></el-icon> |
|
|
|
|
<div class="el-upload__text"> |
|
|
|
|
已选择文件:{{ |
|
|
|
|
fileList[fileList.length - 1].name |
|
|
|
|
}} |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-upload> |
|
|
|
|
<div class="mt-20"> |
|
|
|
|
<span>文件模板</span> |
|
|
|
|
<a |
|
|
|
|
class="link" |
|
|
|
|
:href="`${BASE_PATH}/templates/涉企涉冻导入模板.xlsx`" |
|
|
|
|
target="__blank" |
|
|
|
|
>涉企涉冻导入模板.xlsx 下载</a |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
<footer class="flex end mt-20 v-center"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
size="large" |
|
|
|
|
@click="handleInvolvedIssueNext" |
|
|
|
|
:disabled="involvedIssueLoading"> |
|
|
|
|
确认 |
|
|
|
|
</el-button> |
|
|
|
|
</footer> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script setup> |
|
|
|
|
import { BASE_PATH } from "@/api/request"; |
|
|
|
|
@ -541,12 +592,12 @@ import {
|
|
|
|
|
listCaseVerif, |
|
|
|
|
delCaseVerif, |
|
|
|
|
distributeCaseVerif, |
|
|
|
|
getNegativeId |
|
|
|
|
getNegativeId, |
|
|
|
|
caseVerifInvolvedIssueFun |
|
|
|
|
} from "@/api/data/caseVerif"; |
|
|
|
|
import { DistributionState } from "@/enums/dictEnums"; |
|
|
|
|
import { getDictLable ,getYearTime} from "@/utils/util"; |
|
|
|
|
import feedback from "@/utils/feedback"; |
|
|
|
|
|
|
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
|
const route =useRoute() |
|
|
|
|
const catchStore = useCatchStore(); |
|
|
|
|
@ -626,6 +677,32 @@ function handleRemoveDistribute(row) {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//涉企涉冻导入 |
|
|
|
|
const involvedIssueShow = ref(false) |
|
|
|
|
const involvedIssueLoading = ref(false) |
|
|
|
|
const fileList= ref([]) |
|
|
|
|
const handleInvolvedIssue = ()=>{ |
|
|
|
|
involvedIssueShow.value=true; |
|
|
|
|
} |
|
|
|
|
const handleInvolvedIssueNext =async ()=>{ |
|
|
|
|
const formData = new FormData(); |
|
|
|
|
formData.append("file", fileList.value[fileList.value.length - 1].raw); |
|
|
|
|
involvedIssueLoading.value = true; |
|
|
|
|
try { |
|
|
|
|
console.log('---------') |
|
|
|
|
await caseVerifInvolvedIssueFun(formData); |
|
|
|
|
feedback.msgSuccess("操作成功"); |
|
|
|
|
involvedIssueShow.value=false; |
|
|
|
|
involvedIssueLoading.value=false; |
|
|
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
involvedIssueLoading.value = false; |
|
|
|
|
involvedIssueShow.value=false; |
|
|
|
|
throw e; |
|
|
|
|
} |
|
|
|
|
getList(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function handleSubmit() { |
|
|
|
|
await formRef.value.validate(); |
|
|
|
|
form.value.data = distributeList.value; |
|
|
|
|
|