|
@@ -6,13 +6,14 @@
|
|
<HcIcon name="stack"/>
|
|
<HcIcon name="stack"/>
|
|
</div>
|
|
</div>
|
|
<div class="ml-2 project-name-box">
|
|
<div class="ml-2 project-name-box">
|
|
- <span class="text-xl text-cut project-alias">{{projectInfo['projectAlias']}}</span>
|
|
|
|
- <div class="text-xs text-cut project-name">{{projectInfo['name']}}</div>
|
|
|
|
|
|
+ <span class="text-xl text-cut project-alias">{{ projectInfo['projectAlias'] }}</span>
|
|
|
|
+ <div class="text-xs text-cut project-name">{{ projectInfo['name'] }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="hc-tree-box" v-loading="treeLoading" element-loading-text="加载中...">
|
|
|
|
|
|
+ <div class="hc-tree-box" v-loading="treeLoading" element-loading-text="加载中...">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
- <HcTree :projectId="projectId" :contractId="contractId" @nodeTap="nodeElTreeClick" @nodeLoading="treeNodeLoading"/>
|
|
|
|
|
|
+ <HcTree :projectId="projectId" :contractId="contractId" @nodeTap="nodeElTreeClick"
|
|
|
|
+ @nodeLoading="treeNodeLoading"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
<!--左右拖动-->
|
|
<!--左右拖动-->
|
|
@@ -20,77 +21,80 @@
|
|
</div>
|
|
</div>
|
|
<div class="hc-page-content-box">
|
|
<div class="hc-page-content-box">
|
|
<HcCard>
|
|
<HcCard>
|
|
- <template #header>
|
|
|
|
|
|
+ <template #header>
|
|
<div class="hc-card-header-table-title">
|
|
<div class="hc-card-header-table-title">
|
|
- 已形成的案卷
|
|
|
|
- </div>
|
|
|
|
|
|
+ 已形成的案卷
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
<template #extra>
|
|
<template #extra>
|
|
- <!--transfer_initial_expert_btn_sampling-->
|
|
|
|
|
|
+ <!--transfer_initial_expert_btn_sampling-->
|
|
<HcTooltip keys="archives_tuning_btn_num">
|
|
<HcTooltip keys="archives_tuning_btn_num">
|
|
<el-button hc-btn @click="refreshFileNumberClick" :loading="refreshFileNumberLoading">
|
|
<el-button hc-btn @click="refreshFileNumberClick" :loading="refreshFileNumberLoading">
|
|
<HcIcon name="folder-shared"/>
|
|
<HcIcon name="folder-shared"/>
|
|
<span>档号整理</span>
|
|
<span>档号整理</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
- <HcTooltip keys="archives_tuning_btn_lock">
|
|
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="lockarchives" :loading="lockLoad">
|
|
|
|
- <HcIcon name="file-lock"/>
|
|
|
|
- <span>档案锁定</span>
|
|
|
|
- </el-button>
|
|
|
|
- </HcTooltip>
|
|
|
|
- <HcTooltip keys="archives_tuning_btn_unlock">
|
|
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="unlockarchives" :loading="unlockLoad">
|
|
|
|
- <HcIcon name="lock-unlock"/>
|
|
|
|
- <span>档案解锁</span>
|
|
|
|
- </el-button>
|
|
|
|
- </HcTooltip>
|
|
|
|
|
|
+ <HcTooltip keys="archives_tuning_btn_lock">
|
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="lockarchives"
|
|
|
|
+ :loading="lockLoad">
|
|
|
|
+ <HcIcon name="file-lock"/>
|
|
|
|
+ <span>档案锁定</span>
|
|
|
|
+ </el-button>
|
|
|
|
+ </HcTooltip>
|
|
|
|
+ <HcTooltip keys="archives_tuning_btn_unlock">
|
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="unlockarchives"
|
|
|
|
+ :loading="unlockLoad">
|
|
|
|
+ <HcIcon name="lock-unlock"/>
|
|
|
|
+ <span>档案解锁</span>
|
|
|
|
+ </el-button>
|
|
|
|
+ </HcTooltip>
|
|
<HcTooltip keys="archives_tuning_btn_remove">
|
|
<HcTooltip keys="archives_tuning_btn_remove">
|
|
<el-button hc-btn @click="movesClick" :disabled="tableCheckedKeys.length <= 0">
|
|
<el-button hc-btn @click="movesClick" :disabled="tableCheckedKeys.length <= 0">
|
|
<HcIcon name="git-pull-request"/>
|
|
<HcIcon name="git-pull-request"/>
|
|
<span>跨目录移动</span>
|
|
<span>跨目录移动</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
- <HcTooltip keys="archives_tuning_btn_edit">
|
|
|
|
|
|
+ <HcTooltip keys="archives_tuning_btn_edit">
|
|
<el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="batchEditClick(1)">
|
|
<el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="batchEditClick(1)">
|
|
<HcIcon name="edit"/>
|
|
<HcIcon name="edit"/>
|
|
<span>编辑</span>
|
|
<span>编辑</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="archives_tuning_btn_disassemble">
|
|
<HcTooltip keys="archives_tuning_btn_disassemble">
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="tunModalClick" >
|
|
|
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="tunModalClick">
|
|
<HcIcon name="archive-drawer"/>
|
|
<HcIcon name="archive-drawer"/>
|
|
<span>拆卷</span>
|
|
<span>拆卷</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
- <!-- <HcTooltip keys="archives_tuning_btn_del">
|
|
|
|
- <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="delModalClick">
|
|
|
|
- <HcIcon name="delete-bin"/>
|
|
|
|
- <span>删除</span>
|
|
|
|
- </el-button>
|
|
|
|
- </HcTooltip> -->
|
|
|
|
|
|
+ <!-- <HcTooltip keys="archives_tuning_btn_del">
|
|
|
|
+ <el-button hc-btn :disabled="tableCheckedKeys.length <= 0" @click="delModalClick">
|
|
|
|
+ <HcIcon name="delete-bin"/>
|
|
|
|
+ <span>删除</span>
|
|
|
|
+ </el-button>
|
|
|
|
+ </HcTooltip> -->
|
|
|
|
|
|
- </template>
|
|
|
|
|
|
+ </template>
|
|
<div class="body" :class="tableFileShow?'file-table':''">
|
|
<div class="body" :class="tableFileShow?'file-table':''">
|
|
<div class="hc-c-table-box">
|
|
<div class="hc-c-table-box">
|
|
<HcTable ref="tableRef"
|
|
<HcTable ref="tableRef"
|
|
- :column="tableColumn"
|
|
|
|
- :datas="tableData"
|
|
|
|
- :loading="tableLoading"
|
|
|
|
- isCheck
|
|
|
|
- @selection-change="tableSelection"
|
|
|
|
- @row-click="tableRowClick"
|
|
|
|
- :ui="hoverHand?'hover-hand':''"
|
|
|
|
|
|
+ :column="tableColumn"
|
|
|
|
+ :datas="tableData"
|
|
|
|
+ :loading="tableLoading"
|
|
|
|
+ isCheck
|
|
|
|
+ @selection-change="tableSelection"
|
|
|
|
+ @row-click="tableRowClick"
|
|
|
|
+ :ui="hoverHand?'hover-hand':''"
|
|
>
|
|
>
|
|
<template #table-column-header-num>
|
|
<template #table-column-header-num>
|
|
<HcTooltip keys="archives_tuning_btn_sort">
|
|
<HcTooltip keys="archives_tuning_btn_sort">
|
|
<span class="text-link text-lg" @click="tableSortClick">
|
|
<span class="text-link text-lg" @click="tableSortClick">
|
|
- <HcIcon name="arrow-up-down" :class="tableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"/>
|
|
|
|
|
|
+ <HcIcon name="arrow-up-down"
|
|
|
|
+ :class="tableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"/>
|
|
</span>
|
|
</span>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
<template #name="{row}">
|
|
<template #name="{row}">
|
|
- <span class="text-link" @click="viewPdf(row.id)">{{row?.name}}</span>
|
|
|
|
|
|
+ <span class="text-link" @click="viewPdf(row.id)">{{ row?.name }}</span>
|
|
</template>
|
|
</template>
|
|
</HcTable>
|
|
</HcTable>
|
|
</div>
|
|
</div>
|
|
@@ -98,25 +102,31 @@
|
|
<div class="header-box">
|
|
<div class="header-box">
|
|
<div class="header">卷内文件</div>
|
|
<div class="header">卷内文件</div>
|
|
<div>
|
|
<div>
|
|
- <HcIcon name="edit" @click="batchEditClick(2)" class="hc-icon-close" :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'" style=" color:rgb(64, 149, 229);"/>
|
|
|
|
- <HcIcon name="delete-bin" @click="delModalClick" class="hc-icon-close text-hover" :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'" style="margin-left:5px;margin-right:5px;color: rgb(189, 49, 36);"/>
|
|
|
|
- <HcIcon name="close" @click="closetableFile" class="hc-icon-close text-hover" style=" color:rgb(64, 149, 229);"/>
|
|
|
|
|
|
+ <HcIcon name="edit" @click="batchEditClick(2)" class="hc-icon-close"
|
|
|
|
+ :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"
|
|
|
|
+ style=" color:rgb(64, 149, 229);"/>
|
|
|
|
+ <HcIcon name="delete-bin" @click="delModalClick" class="hc-icon-close text-hover"
|
|
|
|
+ :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"
|
|
|
|
+ style="margin-left:5px;margin-right:5px;color: rgb(189, 49, 36);"/>
|
|
|
|
+ <HcIcon name="close" @click="closetableFile" class="hc-icon-close text-hover"
|
|
|
|
+ style=" color:rgb(64, 149, 229);"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="hc-file-table-box">
|
|
<div class="hc-file-table-box">
|
|
<HcTable
|
|
<HcTable
|
|
- :loading="intableLoading"
|
|
|
|
- ref="tableFileRef"
|
|
|
|
- :column="innertableColumn"
|
|
|
|
- :datas="intableData"
|
|
|
|
- isCheck
|
|
|
|
- @selection-change="intableSelection"
|
|
|
|
- >
|
|
|
|
- <template #table-column-header-num>
|
|
|
|
|
|
+ :loading="intableLoading"
|
|
|
|
+ ref="tableFileRef"
|
|
|
|
+ :column="innertableColumn"
|
|
|
|
+ :datas="intableData"
|
|
|
|
+ isCheck
|
|
|
|
+ @selection-change="intableSelection"
|
|
|
|
+ >
|
|
|
|
+ <template #table-column-header-num>
|
|
<HcTooltip keys="archives_tuning_btn_sort">
|
|
<HcTooltip keys="archives_tuning_btn_sort">
|
|
<span class="text-link text-lg" @click="intableSortClick">
|
|
<span class="text-link text-lg" @click="intableSortClick">
|
|
- <HcIcon name="arrow-up-down" :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"/>
|
|
|
|
|
|
+ <HcIcon name="arrow-up-down"
|
|
|
|
+ :class="intableCheckedKeys.length >0 ? 'text-hover' : 'text-disable'"/>
|
|
</span>
|
|
</span>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
@@ -131,20 +141,23 @@
|
|
</HcCard>
|
|
</HcCard>
|
|
</div>
|
|
</div>
|
|
<!--跨目录移动-->
|
|
<!--跨目录移动-->
|
|
- <HcDialog :show="movesModal" title="跨目录移动" widths="990px" isTable @close="movesModalClose" @save="movesModalSave" :loading="movesModalLoading">
|
|
|
|
|
|
+ <HcDialog :show="movesModal" title="跨目录移动" widths="990px" isTable @close="movesModalClose"
|
|
|
|
+ @save="movesModalSave" :loading="movesModalLoading">
|
|
<div class="hc-moves-transfer-box">
|
|
<div class="hc-moves-transfer-box">
|
|
<div class="hc-moves-transfer-panel">
|
|
<div class="hc-moves-transfer-panel">
|
|
<div class="panel-header">
|
|
<div class="panel-header">
|
|
<div class="panel-header-label">
|
|
<div class="panel-header-label">
|
|
- <el-checkbox class="size-xl space" v-model="movesCheckAll" :indeterminate="isIndeterminate" @change="handleCheckAllChange">选择需要迁移的文件</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox class="size-xl space" v-model="movesCheckAll" :indeterminate="isIndeterminate"
|
|
|
|
+ @change="handleCheckAllChange">选择需要迁移的文件
|
|
|
|
+ </el-checkbox>
|
|
</div>
|
|
</div>
|
|
- <div class="panel-header-extra">{{checkedMoves.length}}/{{tableCheckedKeys.length}}</div>
|
|
|
|
|
|
+ <div class="panel-header-extra">{{ checkedMoves.length }}/{{ tableCheckedKeys.length }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
<el-checkbox-group v-model="checkedMoves" @change="handleCheckedMovesChange">
|
|
<el-checkbox-group v-model="checkedMoves" @change="handleCheckedMovesChange">
|
|
<div class="hc-file-checkbox" v-for="item in tableCheckedKeys" :key="item.id">
|
|
<div class="hc-file-checkbox" v-for="item in tableCheckedKeys" :key="item.id">
|
|
- <el-checkbox class="size-xl space" :label="item.id">{{item.name}}</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox class="size-xl space" :label="item.id">{{ item.name }}</el-checkbox>
|
|
</div>
|
|
</div>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
@@ -161,7 +174,8 @@
|
|
<div class="panel-header">选择移动目录</div>
|
|
<div class="panel-header">选择移动目录</div>
|
|
<div class="panel-body">
|
|
<div class="panel-body">
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
- <HcTree idPrefix="hc-tree-moves-" :projectId="projectId" :contractId="contractId" isRadio @noderadio="nodeRadio" :isShowMenu="false"/>
|
|
|
|
|
|
+ <HcTree idPrefix="hc-tree-moves-" :projectId="projectId" :contractId="contractId" isRadio
|
|
|
|
+ @noderadio="nodeRadio" :isShowMenu="false"/>
|
|
</el-scrollbar>
|
|
</el-scrollbar>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -171,9 +185,10 @@
|
|
<HcDialog :show="sortModal" title="调整排序" widths="980px" isTable isRowFooter @close="sortModalClose">
|
|
<HcDialog :show="sortModal" title="调整排序" widths="980px" isTable isRowFooter @close="sortModalClose">
|
|
<el-alert title="可拖动排序,也可在后面点击图标,切换排序" type="error" :closable="false"/>
|
|
<el-alert title="可拖动排序,也可在后面点击图标,切换排序" type="error" :closable="false"/>
|
|
<div class="hc-table-h">
|
|
<div class="hc-table-h">
|
|
- <HcTable ui="hc-table-row-drop" :column="sortTableColumn" :datas="sortTableData" :loading="sortTableLoading" isRowDrop @row-drop="sortTableRowDrop">
|
|
|
|
|
|
+ <HcTable ui="hc-table-row-drop" :column="sortTableColumn" :datas="sortTableData"
|
|
|
|
+ :loading="sortTableLoading" isRowDrop @row-drop="sortTableRowDrop">
|
|
<template #key2="{row}">
|
|
<template #key2="{row}">
|
|
- <span class="text-link">{{row?.key2}}</span>
|
|
|
|
|
|
+ <span class="text-link">{{ row?.key2 }}</span>
|
|
</template>
|
|
</template>
|
|
<template #action="{index}">
|
|
<template #action="{index}">
|
|
<span class="text-link text-xl" @click="upSortClick(index)">
|
|
<span class="text-link text-xl" @click="upSortClick(index)">
|
|
@@ -196,24 +211,29 @@
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
<template #rightRowFooter>
|
|
<template #rightRowFooter>
|
|
- <HcPages :pages="sortSearchForm" :sizes="[10, 20, 50, 100, 200, 300, 400, 500, 600]" @change="sortPageChange"/>
|
|
|
|
|
|
+ <HcPages :pages="sortSearchForm" :sizes="[10, 20, 50, 100, 200, 300, 400, 500, 600]"
|
|
|
|
+ @change="sortPageChange"/>
|
|
</template>
|
|
</template>
|
|
</HcDialog>
|
|
</HcDialog>
|
|
|
|
|
|
<!--编辑案卷信息-->
|
|
<!--编辑案卷信息-->
|
|
<el-dialog v-model="showUploadModal" :title="editTitle" width="80vw" class="hc-modal-border hc-modal-table">
|
|
<el-dialog v-model="showUploadModal" :title="editTitle" width="80vw" class="hc-modal-border hc-modal-table">
|
|
- <HcTable ui="hc-form-table" :column="tableUploadColumn" :datas="tableUploadData" :loading="uploadSaveLoading">
|
|
|
|
|
|
+ <HcTable ui="hc-form-table" :column="tableUploadColumn" :datas="tableUploadData"
|
|
|
|
+ :loading="uploadSaveLoading">
|
|
<template #fileNumber="{row}">
|
|
<template #fileNumber="{row}">
|
|
- <el-input v-model="row.fileNumber" :class="row['isFileNumber'] ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileNumber')"/>
|
|
|
|
|
|
+ <el-input v-model="row.fileNumber" :class="row['isFileNumber'] ? 'is-error' : ''"
|
|
|
|
+ @input="tableIsInput($event, row, 'isFileNumber')"/>
|
|
</template>
|
|
</template>
|
|
- <template #name="{row}">
|
|
|
|
- <el-input v-model="row.name" :class="row['isFileName'] ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileName')"/>
|
|
|
|
|
|
+ <template #fileName="{row}">
|
|
|
|
+ <el-input v-model="row.fileName" :class="row['isFileName'] ? 'is-error' : ''"
|
|
|
|
+ @input="tableIsInput($event, row, 'isFileName')"/>
|
|
</template>
|
|
</template>
|
|
<template #fileTime="{row}" v-if="editType === 2">
|
|
<template #fileTime="{row}" v-if="editType === 2">
|
|
- <el-date-picker v-model="row.fileTime" type="date" format="YYYY/MM/DD" value-format="YYYY-MM-DD" :clearable="false"/>
|
|
|
|
|
|
+ <el-date-picker v-model="row.fileTime" type="date" format="YYYYMMDD" value-format="YYYYMMDD"
|
|
|
|
+ :clearable="false"/>
|
|
</template>
|
|
</template>
|
|
<template #filingUnit="{row}">
|
|
<template #filingUnit="{row}">
|
|
- <el-input v-model="row.filingUnit" />
|
|
|
|
|
|
+ <el-input v-model="row.filingUnit"/>
|
|
</template>
|
|
</template>
|
|
<template #remark="{row}">
|
|
<template #remark="{row}">
|
|
<el-input v-model="row.remark" type="textarea"/>
|
|
<el-input v-model="row.remark" type="textarea"/>
|
|
@@ -229,7 +249,8 @@
|
|
<HcIcon name="close"/>
|
|
<HcIcon name="close"/>
|
|
<span>取消</span>
|
|
<span>取消</span>
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button type="primary" hc-btn :disabled="uploadSaveLoading" :loading="uploadSaveLoading" @click="batchUploadSave">
|
|
|
|
|
|
+ <el-button type="primary" hc-btn :disabled="uploadSaveLoading" :loading="uploadSaveLoading"
|
|
|
|
+ @click="batchUploadSave">
|
|
<HcIcon name="save"/>
|
|
<HcIcon name="save"/>
|
|
<span>保存</span>
|
|
<span>保存</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -284,17 +305,17 @@ const nodeIds = ref('')
|
|
const isStorageNode = ref(0)
|
|
const isStorageNode = ref(0)
|
|
// const isBuiltDrawing = ref(0)
|
|
// const isBuiltDrawing = ref(0)
|
|
const nodeElTreeClick = ({node, data, keys, key}) => {
|
|
const nodeElTreeClick = ({node, data, keys, key}) => {
|
|
- console.log('点击',data);
|
|
|
|
|
|
+ console.log('点击', data);
|
|
searchForm.value.total = 0
|
|
searchForm.value.total = 0
|
|
searchForm.value.current = 1
|
|
searchForm.value.current = 1
|
|
searchForm.value.size = 20
|
|
searchForm.value.size = 20
|
|
searchForm.value.nodeIds = data.id || '';
|
|
searchForm.value.nodeIds = data.id || '';
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
-const nodeRadio= ({node, data, keys, key}) => {
|
|
|
|
- console.log(data,'data33333');
|
|
|
|
|
|
+const nodeRadio = ({node, data, keys, key}) => {
|
|
|
|
+ console.log(data, 'data33333');
|
|
chnodeId.value = data.id || '';
|
|
chnodeId.value = data.id || '';
|
|
- console.log( chnodeId.value,' chnodeId.value');
|
|
|
|
|
|
+ console.log(chnodeId.value, ' chnodeId.value');
|
|
|
|
|
|
}
|
|
}
|
|
//搜索表单
|
|
//搜索表单
|
|
@@ -328,23 +349,23 @@ const tableColumn = ref([])
|
|
//设置表头
|
|
//设置表头
|
|
const setTableColumns = () => {
|
|
const setTableColumns = () => {
|
|
tableColumn.value = [
|
|
tableColumn.value = [
|
|
- {key:'fileNumber', name: '档号'},
|
|
|
|
- {key:'name', name: '案卷题名',width:500},
|
|
|
|
- {key:'storageTimeValue', name: '保管期限'},
|
|
|
|
- {key:'pageN', name: '总页数'},
|
|
|
|
- ]
|
|
|
|
|
|
+ {key: 'fileNumber', name: '档号'},
|
|
|
|
+ {key: 'name', name: '案卷题名', width: 500},
|
|
|
|
+ {key: 'storageTimeValue', name: '保管期限'},
|
|
|
|
+ {key: 'pageN', name: '总页数'},
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
//获取数据
|
|
//获取数据
|
|
const tableLoading = ref(false)
|
|
const tableLoading = ref(false)
|
|
const getTableData = async () => {
|
|
const getTableData = async () => {
|
|
- tableFileShow.value=false
|
|
|
|
|
|
+ tableFileShow.value = false
|
|
tableLoading.value = true
|
|
tableLoading.value = true
|
|
- const { error, code, data } = await tuningApi.pageByArchive({
|
|
|
|
|
|
+ const {error, code, data} = await tuningApi.pageByArchive({
|
|
...searchForm.value,
|
|
...searchForm.value,
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
- isArchive :0
|
|
|
|
|
|
+ isArchive: 0
|
|
})
|
|
})
|
|
tableLoading.value = false
|
|
tableLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -357,25 +378,25 @@ const getTableData = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
const innertableColumn = ref([])
|
|
const innertableColumn = ref([])
|
|
-const intableData=ref([])
|
|
|
|
|
|
+const intableData = ref([])
|
|
//设置表头
|
|
//设置表头
|
|
const setInnertableColumn = () => {
|
|
const setInnertableColumn = () => {
|
|
innertableColumn.value = [
|
|
innertableColumn.value = [
|
|
- {key:'fileNumber', name: '文件编号'},
|
|
|
|
- {key:'name', name: '文件题名',width:500},
|
|
|
|
- {key:'fileTime', name: '文件日期'},
|
|
|
|
- {key:'dutyUser', name: '责任者'},
|
|
|
|
- {key:'pageN', name: '页数'},
|
|
|
|
- ]
|
|
|
|
|
|
+ {key: 'fileNumber', name: '文件编号'},
|
|
|
|
+ {key: 'fileName', name: '文件题名', width: 500},
|
|
|
|
+ {key: 'fileTime', name: '文件日期'},
|
|
|
|
+ {key: 'dutyUser', name: '责任者'},
|
|
|
|
+ {key: 'pageNum', name: '页数'},
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
-const intableLoading=ref(false)
|
|
|
|
|
|
+const intableLoading = ref(false)
|
|
//获取卷内文件
|
|
//获取卷内文件
|
|
-const getintableData=async()=>{
|
|
|
|
|
|
+const getintableData = async () => {
|
|
intableLoading.value = true
|
|
intableLoading.value = true
|
|
- const { error, code, data } = await tuningApi.getarchiveFilePage({
|
|
|
|
|
|
+ const {error, code, data} = await tuningApi.getarchiveFilePage({
|
|
...insearchForm.value,
|
|
...insearchForm.value,
|
|
- nodeIds:searchForm.value.nodeIds,
|
|
|
|
- archiveId:checkInid.value
|
|
|
|
|
|
+ nodeIds: searchForm.value.nodeIds,
|
|
|
|
+ archiveId: checkInid.value
|
|
})
|
|
})
|
|
intableLoading.value = false
|
|
intableLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -408,11 +429,11 @@ const delModalClick = () => {
|
|
confirmButtonText: '确认删除',
|
|
confirmButtonText: '确认删除',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
- callback: async(action, ctx, close) => {
|
|
|
|
|
|
+ callback: async (action, ctx, close) => {
|
|
ctx.confirmButtonLoading = true;
|
|
ctx.confirmButtonLoading = true;
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
- const { error, code, data,msg } = await tuningApi.removeFiles({
|
|
|
|
- ids:ids,
|
|
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.removeFiles({
|
|
|
|
+ ids: ids,
|
|
archiveId: checkInid.value
|
|
archiveId: checkInid.value
|
|
})
|
|
})
|
|
ctx.confirmButtonLoading = false;
|
|
ctx.confirmButtonLoading = false;
|
|
@@ -421,30 +442,30 @@ const delModalClick = () => {
|
|
getintableData()
|
|
getintableData()
|
|
} else {
|
|
} else {
|
|
window.$message?.warning(msg)
|
|
window.$message?.warning(msg)
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-const splitLoad=ref(false)
|
|
|
|
-const tunModalClick=()=>{
|
|
|
|
- splitLoad.value=true
|
|
|
|
|
|
+const splitLoad = ref(false)
|
|
|
|
+const tunModalClick = () => {
|
|
|
|
+ splitLoad.value = true
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量拆除已经案卷及卷内文件?', '拆除案卷', {
|
|
window?.$messageBox?.alert('请谨慎考虑是否要批量拆除已经案卷及卷内文件?', '拆除案卷', {
|
|
showCancelButton: true,
|
|
showCancelButton: true,
|
|
confirmButtonText: '确认拆卷',
|
|
confirmButtonText: '确认拆卷',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
- callback: async(action, ctx, close) => {
|
|
|
|
|
|
+ callback: async (action, ctx, close) => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
console.log(1111);
|
|
console.log(1111);
|
|
|
|
|
|
ctx.confirmButtonLoading = true;
|
|
ctx.confirmButtonLoading = true;
|
|
|
|
|
|
- let ids=''
|
|
|
|
|
|
+ let ids = ''
|
|
const rows = tableCheckedKeys.value;
|
|
const rows = tableCheckedKeys.value;
|
|
- ids= rowsToId(rows)
|
|
|
|
- const { error, code, data,msg } = await tuningApi.splitArchive({
|
|
|
|
- ids:ids
|
|
|
|
|
|
+ ids = rowsToId(rows)
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.splitArchive({
|
|
|
|
+ ids: ids
|
|
})
|
|
})
|
|
ctx.confirmButtonLoading = true;
|
|
ctx.confirmButtonLoading = true;
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -463,7 +484,7 @@ const onmousedown = () => {
|
|
const leftNum = isCollapse.value ? 142 : 272
|
|
const leftNum = isCollapse.value ? 142 : 272
|
|
document.onmousemove = (ve) => {
|
|
document.onmousemove = (ve) => {
|
|
let diffVal = ve.clientX - leftNum;
|
|
let diffVal = ve.clientX - leftNum;
|
|
- if(diffVal >= 310 && diffVal <= 900) {
|
|
|
|
|
|
+ if (diffVal >= 310 && diffVal <= 900) {
|
|
leftWidth.value = diffVal;
|
|
leftWidth.value = diffVal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -502,19 +523,19 @@ const handleCheckedMovesChange = (value) => {
|
|
|
|
|
|
//保存
|
|
//保存
|
|
const movesModalLoading = ref(false)
|
|
const movesModalLoading = ref(false)
|
|
-const chnodeId=ref('')
|
|
|
|
-const movesModalSave = async() => {
|
|
|
|
|
|
+const chnodeId = ref('')
|
|
|
|
+const movesModalSave = async () => {
|
|
movesModalLoading.value = true
|
|
movesModalLoading.value = true
|
|
- console.log(checkedMoves.value,'checkedMoves.value');
|
|
|
|
- let ids=checkedMoves.value.join(',')
|
|
|
|
|
|
+ console.log(checkedMoves.value, 'checkedMoves.value');
|
|
|
|
+ let ids = checkedMoves.value.join(',')
|
|
|
|
|
|
- const { error, code, data,msg } = await tuningApi.moveArchive({
|
|
|
|
- ids:ids,
|
|
|
|
- nodeId:chnodeId.value
|
|
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.moveArchive({
|
|
|
|
+ ids: ids,
|
|
|
|
+ nodeId: chnodeId.value
|
|
})
|
|
})
|
|
movesModalLoading.value = false
|
|
movesModalLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- console.log(msg,'msg');
|
|
|
|
|
|
+ console.log(msg, 'msg');
|
|
window.$message?.success(msg)
|
|
window.$message?.success(msg)
|
|
getTableData()
|
|
getTableData()
|
|
} else {
|
|
} else {
|
|
@@ -532,17 +553,17 @@ const movesModalClose = () => {
|
|
const sortModal = ref(false)
|
|
const sortModal = ref(false)
|
|
//显示
|
|
//显示
|
|
const tableSortClick = () => {
|
|
const tableSortClick = () => {
|
|
- if(tableCheckedKeys.value.length>0){
|
|
|
|
|
|
+ if (tableCheckedKeys.value.length > 0) {
|
|
sortModal.value = true
|
|
sortModal.value = true
|
|
- sortType.value=1
|
|
|
|
|
|
+ sortType.value = 1
|
|
setsortTableColumn()
|
|
setsortTableColumn()
|
|
getSortTableData()
|
|
getSortTableData()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const intableSortClick = () => {
|
|
const intableSortClick = () => {
|
|
- if(intableCheckedKeys.value.length>0){
|
|
|
|
|
|
+ if (intableCheckedKeys.value.length > 0) {
|
|
sortModal.value = true
|
|
sortModal.value = true
|
|
- sortType.value=2
|
|
|
|
|
|
+ sortType.value = 2
|
|
setsortTableColumn()
|
|
setsortTableColumn()
|
|
getSortTableData()
|
|
getSortTableData()
|
|
}
|
|
}
|
|
@@ -550,10 +571,10 @@ const intableSortClick = () => {
|
|
}
|
|
}
|
|
//表格行被点击
|
|
//表格行被点击
|
|
const tableFileShow = ref(false)
|
|
const tableFileShow = ref(false)
|
|
-const checkInid=ref('')
|
|
|
|
|
|
+const checkInid = ref('')
|
|
const tableRowClick = ({row}) => {
|
|
const tableRowClick = ({row}) => {
|
|
tableFileShow.value = true;
|
|
tableFileShow.value = true;
|
|
- checkInid.value=row.id
|
|
|
|
|
|
+ checkInid.value = row.id
|
|
setInnertableColumn()
|
|
setInnertableColumn()
|
|
getintableData()
|
|
getintableData()
|
|
}
|
|
}
|
|
@@ -576,40 +597,40 @@ const sortPageChange = ({current, size}) => {
|
|
getSortTableData()
|
|
getSortTableData()
|
|
}
|
|
}
|
|
const setsortTableColumn = () => {
|
|
const setsortTableColumn = () => {
|
|
- if(sortType.value===1){
|
|
|
|
- sortTableColumn.value = [
|
|
|
|
- {key:'fileNumber', name: '档号', width: 160},
|
|
|
|
- {key:'name', name: '案卷名称'},
|
|
|
|
- {key:'action', name: '排序', width: 90},
|
|
|
|
- ]
|
|
|
|
- }else if(sortType.value===2){
|
|
|
|
- sortTableColumn.value = [
|
|
|
|
- {key:'fileNumber', name: '文件编号', width: 160},
|
|
|
|
- {key:'name', name: '文件名称'},
|
|
|
|
- {key:'action', name: '排序', width: 90},
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
|
|
+ if (sortType.value === 1) {
|
|
|
|
+ sortTableColumn.value = [
|
|
|
|
+ {key: 'fileNumber', name: '档号', width: 160},
|
|
|
|
+ {key: 'name', name: '案卷名称'},
|
|
|
|
+ {key: 'action', name: '排序', width: 90},
|
|
|
|
+ ]
|
|
|
|
+ } else if (sortType.value === 2) {
|
|
|
|
+ sortTableColumn.value = [
|
|
|
|
+ {key: 'fileNumber', name: '文件编号', width: 160},
|
|
|
|
+ {key: 'name', name: '文件名称'},
|
|
|
|
+ {key: 'action', name: '排序', width: 90},
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//表格数据
|
|
//表格数据
|
|
const sortTableColumn = ref([
|
|
const sortTableColumn = ref([
|
|
- {key:'fileNumber', name: '档号', width: 160},
|
|
|
|
- {key:'name', name: '案卷名称'},
|
|
|
|
- {key:'action', name: '排序', width: 90},
|
|
|
|
|
|
+ {key: 'fileNumber', name: '档号', width: 160},
|
|
|
|
+ {key: 'name', name: '案卷名称'},
|
|
|
|
+ {key: 'action', name: '排序', width: 90},
|
|
])
|
|
])
|
|
const sortTableData = ref([])
|
|
const sortTableData = ref([])
|
|
|
|
|
|
const sortTableLoading = ref(false)
|
|
const sortTableLoading = ref(false)
|
|
-const sortType=ref()
|
|
|
|
|
|
+const sortType = ref()
|
|
const getSortTableData = () => {
|
|
const getSortTableData = () => {
|
|
- if(sortType.value===1){
|
|
|
|
- sortTableData.value=tableCheckedKeys.value
|
|
|
|
- sortSearchForm.value.total= sortTableData.value.length
|
|
|
|
- }else if(sortType.value===2){
|
|
|
|
- sortTableData.value=intableCheckedKeys.value
|
|
|
|
- sortSearchForm.value.total= intableCheckedKeys.value.length
|
|
|
|
|
|
+ if (sortType.value === 1) {
|
|
|
|
+ sortTableData.value = tableCheckedKeys.value
|
|
|
|
+ sortSearchForm.value.total = sortTableData.value.length
|
|
|
|
+ } else if (sortType.value === 2) {
|
|
|
|
+ sortTableData.value = intableCheckedKeys.value
|
|
|
|
+ sortSearchForm.value.total = intableCheckedKeys.value.length
|
|
}
|
|
}
|
|
|
|
|
|
- sortSearchForm.value.current= 1
|
|
|
|
|
|
+ sortSearchForm.value.current = 1
|
|
}
|
|
}
|
|
|
|
|
|
//拖动完成
|
|
//拖动完成
|
|
@@ -621,9 +642,9 @@ const sortTableRowDrop = (rows) => {
|
|
const downSortClick = (index) => {
|
|
const downSortClick = (index) => {
|
|
const indexs = index + 1
|
|
const indexs = index + 1
|
|
const data = sortTableData.value
|
|
const data = sortTableData.value
|
|
- if(indexs !== data.length) {
|
|
|
|
- const tmp = data.splice(indexs,1);
|
|
|
|
- sortTableData.value.splice(index,0,tmp[0]);
|
|
|
|
|
|
+ if (indexs !== data.length) {
|
|
|
|
+ const tmp = data.splice(indexs, 1);
|
|
|
|
+ sortTableData.value.splice(index, 0, tmp[0]);
|
|
} else {
|
|
} else {
|
|
window?.$message?.warning('已经处于置底,无法下移')
|
|
window?.$message?.warning('已经处于置底,无法下移')
|
|
}
|
|
}
|
|
@@ -632,9 +653,9 @@ const downSortClick = (index) => {
|
|
//向上
|
|
//向上
|
|
const upSortClick = (index) => {
|
|
const upSortClick = (index) => {
|
|
const data = sortTableData.value || []
|
|
const data = sortTableData.value || []
|
|
- if(index !== 0) {
|
|
|
|
- const tmp = data.splice(index - 1,1);
|
|
|
|
- sortTableData.value.splice(index,0,tmp[0]);
|
|
|
|
|
|
+ if (index !== 0) {
|
|
|
|
+ const tmp = data.splice(index - 1, 1);
|
|
|
|
+ sortTableData.value.splice(index, 0, tmp[0]);
|
|
} else {
|
|
} else {
|
|
window?.$message?.warning('已经处于置顶,无法上移')
|
|
window?.$message?.warning('已经处于置顶,无法上移')
|
|
}
|
|
}
|
|
@@ -654,64 +675,64 @@ const sortModalClose = () => {
|
|
|
|
|
|
const showUploadModal = ref(false)
|
|
const showUploadModal = ref(false)
|
|
const isBuiltDrawing = ref(0)
|
|
const isBuiltDrawing = ref(0)
|
|
-const editTitle=ref('')
|
|
|
|
-const editType=ref()
|
|
|
|
|
|
+const editTitle = ref('')
|
|
|
|
+const editType = ref()
|
|
//批量上传保存
|
|
//批量上传保存
|
|
const uploadSaveLoading = ref(false)
|
|
const uploadSaveLoading = ref(false)
|
|
//批量编辑
|
|
//批量编辑
|
|
|
|
|
|
//批量编辑
|
|
//批量编辑
|
|
const batchEditClick = (type) => {
|
|
const batchEditClick = (type) => {
|
|
- let rows=[]
|
|
|
|
- if(type===1){
|
|
|
|
- editTitle.value='编辑案卷信息'
|
|
|
|
- editType.value=1
|
|
|
|
|
|
+ let rows = []
|
|
|
|
+ if (type === 1) {
|
|
|
|
+ editTitle.value = '编辑案卷信息'
|
|
|
|
+ editType.value = 1
|
|
rows = deepClone(tableCheckedKeys.value)
|
|
rows = deepClone(tableCheckedKeys.value)
|
|
- }else{
|
|
|
|
- editTitle.value='编辑文件信息'
|
|
|
|
- editType.value=2
|
|
|
|
|
|
+ } else {
|
|
|
|
+ editTitle.value = '编辑文件信息'
|
|
|
|
+ editType.value = 2
|
|
rows = deepClone(intableCheckedKeys.value)
|
|
rows = deepClone(intableCheckedKeys.value)
|
|
}
|
|
}
|
|
//判断状态
|
|
//判断状态
|
|
- setTableUploadColumn(type)
|
|
|
|
- uploadSaveLoading.value = false
|
|
|
|
- tableUploadData.value = rows
|
|
|
|
- showUploadModal.value = true
|
|
|
|
-
|
|
|
|
|
|
+ setTableUploadColumn(type)
|
|
|
|
+ uploadSaveLoading.value = false
|
|
|
|
+ console.log(rows)
|
|
|
|
+ tableUploadData.value = rows
|
|
|
|
+ showUploadModal.value = true
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
//设置文件表头
|
|
//设置文件表头
|
|
const tableUploadColumn = ref([])
|
|
const tableUploadColumn = ref([])
|
|
const setTableUploadColumn = (type) => {
|
|
const setTableUploadColumn = (type) => {
|
|
if (type === 1) {
|
|
if (type === 1) {
|
|
tableUploadColumn.value = [
|
|
tableUploadColumn.value = [
|
|
- {key:'fileNumber', name: '档号'},
|
|
|
|
- {key:'name', name: '案卷题名'},
|
|
|
|
- {key:'filingUnit', name: '立卷单位'},
|
|
|
|
- {key:'remark', name: '备注'},
|
|
|
|
|
|
+ {key: 'fileNumber', name: '档号'},
|
|
|
|
+ {key: 'name', name: '案卷题名'},
|
|
|
|
+ {key: 'filingUnit', name: '立卷单位'},
|
|
|
|
+ {key: 'remark', name: '备注'},
|
|
]
|
|
]
|
|
} else {
|
|
} else {
|
|
tableUploadColumn.value = [
|
|
tableUploadColumn.value = [
|
|
- {key:'fileNumber', name: '文件编号'},
|
|
|
|
- {key:'name', name: '文件题名'},
|
|
|
|
- {key:'fileTime', name: '文件日期'},
|
|
|
|
- {key:'filingUnit', name: '立卷单位'},
|
|
|
|
- {key:'remark', name: '备注'},
|
|
|
|
|
|
+ {key: 'fileNumber', name: '文件编号'},
|
|
|
|
+ {key: 'fileName', name: '文件题名'},
|
|
|
|
+ {key: 'fileTime', name: '文件日期'},
|
|
|
|
+ {key: 'filingUnit', name: '立卷单位'},
|
|
|
|
+ {key: 'remark', name: '备注'},
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const tableUploadData = ref([])
|
|
const tableUploadData = ref([])
|
|
-const batchUploadCancel=()=>{
|
|
|
|
-
|
|
|
|
|
|
+const batchUploadCancel = () => {
|
|
|
|
+ showUploadModal.value = false
|
|
|
|
+ tableUploadData.value = []
|
|
}
|
|
}
|
|
//确认上传保存
|
|
//确认上传保存
|
|
const batchUploadSaveApi = async (rows) => {
|
|
const batchUploadSaveApi = async (rows) => {
|
|
uploadSaveLoading.value = true
|
|
uploadSaveLoading.value = true
|
|
const {error, code} = await archiveFileApi.batchUploadSave({
|
|
const {error, code} = await archiveFileApi.batchUploadSave({
|
|
list: rows
|
|
list: rows
|
|
- },false)
|
|
|
|
|
|
+ }, false)
|
|
//判断状态
|
|
//判断状态
|
|
uploadSaveLoading.value = false
|
|
uploadSaveLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -723,7 +744,7 @@ const batchUploadSaveApi = async (rows) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//批量新增编辑保存
|
|
//批量新增编辑保存
|
|
-const batchUploadSave=async()=>{
|
|
|
|
|
|
+const batchUploadSave = async () => {
|
|
const rows = tableUploadData.value
|
|
const rows = tableUploadData.value
|
|
if (rows.length > 0) {
|
|
if (rows.length > 0) {
|
|
//验证表单数据
|
|
//验证表单数据
|
|
@@ -735,20 +756,19 @@ const batchUploadSave=async()=>{
|
|
uploadSaveLoading.value = false
|
|
uploadSaveLoading.value = false
|
|
window.$message?.warning('请先完善表单信息')
|
|
window.$message?.warning('请先完善表单信息')
|
|
} else {
|
|
} else {
|
|
- console.log(rows,'rows');
|
|
|
|
- if(editType.value===2){
|
|
|
|
- //数据处理
|
|
|
|
- rows.forEach((element,index)=>{
|
|
|
|
- element.startDate = element.dates[0]
|
|
|
|
- element.endDate = element.dates[1]
|
|
|
|
- element.autoFileSort = index+1
|
|
|
|
|
|
+ console.log(rows, 'rows');
|
|
|
|
+ if (editType.value === 2) {
|
|
|
|
+ //数据处理
|
|
|
|
+ rows.forEach((element, index) => {
|
|
|
|
+ const {dates} = element
|
|
|
|
+ element.startDate = dates ? dates[0] : null
|
|
|
|
+ element.endDate = dates ? dates[1] : null
|
|
|
|
+ element.autoFileSort = index + 1
|
|
})
|
|
})
|
|
await batchUploadSaveApi(rows)
|
|
await batchUploadSaveApi(rows)
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
await batchUploadSaveApi(rows)
|
|
await batchUploadSaveApi(rows)
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
// if (tableUploadType.value === 'add') {
|
|
// if (tableUploadType.value === 'add') {
|
|
// await batchUploadSaveApi(rows)
|
|
// await batchUploadSaveApi(rows)
|
|
// } else {
|
|
// } else {
|
|
@@ -759,33 +779,33 @@ const batchUploadSave=async()=>{
|
|
window.$message?.warning('请先上传文件')
|
|
window.$message?.warning('请先上传文件')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-const lockLoad=ref(false)
|
|
|
|
-const unlockLoad=ref(false)
|
|
|
|
|
|
+const lockLoad = ref(false)
|
|
|
|
+const unlockLoad = ref(false)
|
|
//档案锁定
|
|
//档案锁定
|
|
-const lockarchives=async()=>{
|
|
|
|
|
|
+const lockarchives = async () => {
|
|
lockLoad.value = true
|
|
lockLoad.value = true
|
|
- let ids=''
|
|
|
|
|
|
+ let ids = ''
|
|
const rows = tableCheckedKeys.value;
|
|
const rows = tableCheckedKeys.value;
|
|
- ids= rowsToId(rows)
|
|
|
|
- const { error, code, data,msg } = await tuningApi.archivesautoLock({
|
|
|
|
- ids:ids
|
|
|
|
|
|
+ ids = rowsToId(rows)
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.archivesautoLock({
|
|
|
|
+ ids: ids
|
|
})
|
|
})
|
|
lockLoad.value = false
|
|
lockLoad.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- console.log(msg,'msg');
|
|
|
|
|
|
+ console.log(msg, 'msg');
|
|
window.$message?.success(msg)
|
|
window.$message?.success(msg)
|
|
getTableData()
|
|
getTableData()
|
|
} else {
|
|
} else {
|
|
window.$message?.warning(msg)
|
|
window.$message?.warning(msg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-const unlockarchives=async()=>{
|
|
|
|
|
|
+const unlockarchives = async () => {
|
|
unlockLoad.value = true
|
|
unlockLoad.value = true
|
|
- let ids=''
|
|
|
|
|
|
+ let ids = ''
|
|
const rows = tableCheckedKeys.value;
|
|
const rows = tableCheckedKeys.value;
|
|
- ids= rowsToId(rows)
|
|
|
|
- const { error, code, data,msg } = await tuningApi.archivesautoUnLock({
|
|
|
|
- ids:ids
|
|
|
|
|
|
+ ids = rowsToId(rows)
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.archivesautoUnLock({
|
|
|
|
+ ids: ids
|
|
})
|
|
})
|
|
unlockLoad.value = false
|
|
unlockLoad.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -795,17 +815,17 @@ const unlockarchives=async()=>{
|
|
window.$message?.warning(msg)
|
|
window.$message?.warning(msg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-const viewPdf=async(id)=>{
|
|
|
|
|
|
+const viewPdf = async (id) => {
|
|
window.$message?.info('预览案卷需要合并pdf,需要一点时间')
|
|
window.$message?.info('预览案卷需要合并pdf,需要一点时间')
|
|
- const { error, code, data,msg } = await tuningApi.printArchive({
|
|
|
|
- id:id
|
|
|
|
|
|
+ const {error, code, data, msg} = await tuningApi.printArchive({
|
|
|
|
+ id: id
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- if(data){
|
|
|
|
- window.open(data, '_blank')
|
|
|
|
- }else{
|
|
|
|
- window.$message?.warning('文件不存在')
|
|
|
|
- }
|
|
|
|
|
|
+ if (data) {
|
|
|
|
+ window.open(data, '_blank')
|
|
|
|
+ } else {
|
|
|
|
+ window.$message?.warning('文件不存在')
|
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
} else {
|
|
window.$message?.warning(msg)
|
|
window.$message?.warning(msg)
|
|
@@ -815,7 +835,7 @@ const viewPdf=async(id)=>{
|
|
//档号整理
|
|
//档号整理
|
|
const refreshFileNumberLoading = ref(false)
|
|
const refreshFileNumberLoading = ref(false)
|
|
const refreshFileNumberClick = async () => {
|
|
const refreshFileNumberClick = async () => {
|
|
- const { error, code, msg } = await tuningApi.refreshFileNumber({
|
|
|
|
|
|
+ const {error, code, msg} = await tuningApi.refreshFileNumber({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
nodeId: searchForm.value.nodeIds || '',
|
|
nodeId: searchForm.value.nodeIds || '',
|
|
@@ -829,59 +849,59 @@ const refreshFileNumberClick = async () => {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-.hc-card-header-table-title{
|
|
|
|
- font-size: 1.125rem;
|
|
|
|
-line-height: 1.75rem;
|
|
|
|
|
|
+.hc-card-header-table-title {
|
|
|
|
+ font-size: 1.125rem;
|
|
|
|
+ line-height: 1.75rem;
|
|
}
|
|
}
|
|
-.rowbox{
|
|
|
|
|
|
+.rowbox {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
- .body {
|
|
|
|
|
|
+.body {
|
|
|
|
+ position: relative;
|
|
|
|
+ // height: calc(100% - 140px);
|
|
|
|
+ height: calc(100% - 0px);
|
|
|
|
+ padding: 16px;
|
|
|
|
+ .hc-c-table-box {
|
|
position: relative;
|
|
position: relative;
|
|
- // height: calc(100% - 140px);
|
|
|
|
- height: calc(100% - 0px);
|
|
|
|
- padding: 16px;
|
|
|
|
- .hc-c-table-box {
|
|
|
|
- position: relative;
|
|
|
|
- height: 100%;
|
|
|
|
- }
|
|
|
|
- .hc-f-table-box {
|
|
|
|
- position: relative;
|
|
|
|
- height: 300px;
|
|
|
|
- margin-top: 24px;
|
|
|
|
- background: #f1f5f8;
|
|
|
|
- .header-box {
|
|
|
|
- border-bottom: initial;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- height: 60px;
|
|
|
|
- background-color:var(--el-fill-color-lighter);
|
|
|
|
- line-height: 60px;
|
|
|
|
- padding-left: 15px;
|
|
|
|
- padding-right: 15px;
|
|
|
|
- .hc-icon-close {
|
|
|
|
- font-size: 18px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .hc-file-table-box {
|
|
|
|
- position: relative;
|
|
|
|
- height: calc(100% - 55px);
|
|
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+ .hc-f-table-box {
|
|
|
|
+ position: relative;
|
|
|
|
+ height: 300px;
|
|
|
|
+ margin-top: 24px;
|
|
|
|
+ background: #f1f5f8;
|
|
|
|
+ .header-box {
|
|
|
|
+ border-bottom: initial;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ height: 60px;
|
|
|
|
+ background-color: var(--el-fill-color-lighter);
|
|
|
|
+ line-height: 60px;
|
|
|
|
+ padding-left: 15px;
|
|
|
|
+ padding-right: 15px;
|
|
|
|
+ .hc-icon-close {
|
|
|
|
+ font-size: 18px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- &.file-table .hc-c-table-box {
|
|
|
|
- height: calc(100% - 324px);
|
|
|
|
|
|
+ .hc-file-table-box {
|
|
|
|
+ position: relative;
|
|
|
|
+ height: calc(100% - 55px);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ &.file-table .hc-c-table-box {
|
|
|
|
+ height: calc(100% - 324px);
|
|
|
|
+ }
|
|
|
|
+}
|
|
@import '~style/file/scoped/collection.scss';
|
|
@import '~style/file/scoped/collection.scss';
|
|
</style>
|
|
</style>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@import '~style/file/collection.scss';
|
|
@import '~style/file/collection.scss';
|
|
-.text-disable{
|
|
|
|
- cursor:not-allowed
|
|
|
|
|
|
+.text-disable {
|
|
|
|
+ cursor: not-allowed
|
|
|
|
+}
|
|
|
|
+.hover-hand {
|
|
|
|
+ cursor: pointer;
|
|
}
|
|
}
|
|
- .hover-hand{
|
|
|
|
- cursor: pointer;
|
|
|
|
- }
|
|
|
|
</style>
|
|
</style>
|