소스 검색

调试档案整理接口

ZaiZai 2 년 전
부모
커밋
9cb4dc71a8
2개의 변경된 파일45개의 추가작업 그리고 22개의 파일을 삭제
  1. 13 5
      src/api/modules/archiveConfig/tuning.js
  2. 32 17
      src/views/archives/tuning.vue

+ 13 - 5
src/api/modules/archiveConfig/tuning.js

@@ -49,22 +49,22 @@ async printArchive(form, msg = true) {
         params: form
     }, msg);
   },
-//案卷迁移/archivesauto/move 
+//案卷迁移/archivesauto/move
     async moveArchive(form, msg = true) {
     return httpApi({
         url: '/api/blade-archive/archivesauto/move',
         method: 'post',
         params: form
     }, msg);
-  }, 
-//拆卷/archivesauto/split 
+  },
+//拆卷/archivesauto/split
 async splitArchive(form, msg = true) {
     return httpApi({
         url: '/api/blade-archive/archivesauto/split',
         method: 'post',
         params: form
     }, msg);
-  }, 
+  },
   //立即更新立卷/blade-archive/archivesauto/archiveAutoMethod
   async archiveAutoMethod(form, msg = true) {
     return httpApi({
@@ -73,4 +73,12 @@ async splitArchive(form, msg = true) {
         params: form
     }, msg);
   },
-}
+    //档案整理
+    async refreshFileNumber(form, msg = true) {
+        return httpApi({
+            url: '/api/blade-archive/archivesauto/refreshFileNumber',
+            method: 'post',
+            params: form
+        }, msg);
+    },
+}

+ 32 - 17
src/views/archives/tuning.vue

@@ -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)
     }