|
@@ -28,7 +28,7 @@
|
|
|
<template #extra>
|
|
|
<!--transfer_initial_expert_btn_sampling-->
|
|
|
<HcTooltip keys="archives_tuning_btn_num">
|
|
|
- <el-button hc-btn>
|
|
|
+ <el-button hc-btn @click="refreshFileNumberClick" :loading="refreshFileNumberLoading">
|
|
|
<HcIcon name="folder-shared"/>
|
|
|
<span>档号整理</span>
|
|
|
</el-button>
|
|
@@ -218,7 +218,7 @@
|
|
|
<template #remark="{row}">
|
|
|
<el-input v-model="row.remark" type="textarea"/>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
</HcTable>
|
|
|
<template #footer>
|
|
|
<div class="lr-dialog-footer">
|
|
@@ -270,7 +270,7 @@ watch(() => [
|
|
|
onMounted(() => {
|
|
|
// getClassIfyList()
|
|
|
setTableColumns()
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
|
|
|
//树加载
|
|
@@ -299,11 +299,11 @@ const nodeRadio= ({node, data, keys, key}) => {
|
|
|
}
|
|
|
//搜索表单
|
|
|
const searchForm = ref({
|
|
|
- contractId: null, type: null, approval: null,
|
|
|
+ contractId: null, type: null, approval: null,
|
|
|
current: 1, size: 20, total: 0
|
|
|
})
|
|
|
const insearchForm = ref({
|
|
|
- contractId: null, type: null, approval: null,
|
|
|
+ contractId: null, type: null, approval: null,
|
|
|
current: 1, size: 20, total: 0
|
|
|
})
|
|
|
//树相关的变量
|
|
@@ -381,11 +381,11 @@ const getintableData=async()=>{
|
|
|
if (!error && code === 200) {
|
|
|
intableData.value = getArrValue(data['records'])
|
|
|
insearchForm.value.total = data['total'] || 0
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
intableData.value = []
|
|
|
insearchForm.value.total = data['total'] || 0
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
//多选
|
|
@@ -399,7 +399,7 @@ const intableSelection = (rows) => {
|
|
|
}
|
|
|
//删除
|
|
|
const delModalClick = () => {
|
|
|
-
|
|
|
+
|
|
|
let ids=''
|
|
|
const rows = tableCheckedKeys.value;
|
|
|
ids= rowsToId(rows)
|
|
@@ -417,7 +417,7 @@ const delModalClick = () => {
|
|
|
ctx.confirmButtonLoading = false;
|
|
|
if (!error && code === 200) {
|
|
|
window.$message?.success(msg)
|
|
|
-
|
|
|
+
|
|
|
} else {
|
|
|
window.$message?.warning(msg)
|
|
|
}
|
|
@@ -436,7 +436,7 @@ const tunModalClick=()=>{
|
|
|
callback: async(action, ctx, close) => {
|
|
|
if (action === 'confirm') {
|
|
|
console.log(1111);
|
|
|
-
|
|
|
+
|
|
|
ctx.confirmButtonLoading = true;
|
|
|
|
|
|
let ids=''
|
|
@@ -492,7 +492,7 @@ const handleCheckAllChange = (val) => {
|
|
|
|
|
|
//勾选
|
|
|
const handleCheckedMovesChange = (value) => {
|
|
|
-
|
|
|
+
|
|
|
const keys = tableCheckedKeys.value
|
|
|
const checkedCount = value.length
|
|
|
movesCheckAll.value = checkedCount === keys.length
|
|
@@ -506,7 +506,7 @@ const movesModalSave = async() => {
|
|
|
movesModalLoading.value = true
|
|
|
console.log(checkedMoves.value,'checkedMoves.value');
|
|
|
let ids=checkedMoves.value.join(',')
|
|
|
-
|
|
|
+
|
|
|
const { error, code, data,msg } = await tuningApi.moveArchive({
|
|
|
ids:ids,
|
|
|
nodeId:chnodeId.value
|
|
@@ -545,7 +545,7 @@ const intableSortClick = () => {
|
|
|
setsortTableColumn()
|
|
|
getSortTableData()
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
//表格行被点击
|
|
|
const tableFileShow = ref(false)
|
|
@@ -607,7 +607,7 @@ const getSortTableData = () => {
|
|
|
sortTableData.value=intableCheckedKeys.value
|
|
|
sortSearchForm.value.total= intableCheckedKeys.value.length
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
sortSearchForm.value.current= 1
|
|
|
}
|
|
|
|
|
@@ -676,7 +676,7 @@ const batchEditClick = (type) => {
|
|
|
uploadSaveLoading.value = false
|
|
|
tableUploadData.value = rows
|
|
|
showUploadModal.value = true
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -746,7 +746,7 @@ const batchUploadSave=async()=>{
|
|
|
}else{
|
|
|
await batchUploadSaveApi(rows)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
// if (tableUploadType.value === 'add') {
|
|
|
// await batchUploadSaveApi(rows)
|
|
@@ -805,7 +805,22 @@ const viewPdf=async(id)=>{
|
|
|
}else{
|
|
|
window.$message?.warning('文件不存在')
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ } else {
|
|
|
+ window.$message?.warning(msg)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+//档号整理
|
|
|
+const refreshFileNumberLoading = ref(false)
|
|
|
+const refreshFileNumberClick = async () => {
|
|
|
+ const { error, code, msg } = await tuningApi.refreshFileNumber({
|
|
|
+ projectId: projectId.value,
|
|
|
+ contractId: contractId.value,
|
|
|
+ nodeId: searchForm.value.nodeIds || '',
|
|
|
+ })
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message?.success(msg)
|
|
|
} else {
|
|
|
window.$message?.warning(msg)
|
|
|
}
|