Browse Source

开始筹借调接口

duy 1 year ago
parent
commit
c089dfd9bc
2 changed files with 32 additions and 4 deletions
  1. 8 0
      src/api/modules/initial/initial.js
  2. 24 4
      src/views/transfer/initial-expert.vue

+ 8 - 0
src/api/modules/initial/initial.js

@@ -97,4 +97,12 @@ export default {
             data: form,
         }, msg)
      },
+     //档案在线验收-开始抽检
+     async startInspect(form, msg = true) {
+        return httpApi({
+            url: '/api/blade-manager/archiveTreeContract/startInspect',
+            method: 'get',
+            params: form,
+        }, msg)
+    },
 }

+ 24 - 4
src/views/transfer/initial-expert.vue

@@ -253,7 +253,7 @@ const tableFileData = ref([
 ])
 
 //获取数据
-const tableFileLoading = ref(false)
+
 const getTableFileData = async () => {
 
 }
@@ -266,10 +266,30 @@ const writingConclusionClick = () => {
 }
 
 //开始抽检
-const submitReportClick = () => {
-    router.push({
-        name: 'transfer-entry-sampling',
+const submitReportClick = async () => {
+
+    const { error, code, data, msg } = await initialgApi.startInspect({
+        projectId: projectId.value,
+       
     })
+ 
+    if (!error && code === 200) {
+    
+            console.log(data, 'data')
+            if (data) {
+                 router.push({
+                    name: 'transfer-entry-sampling',
+                })
+            } else {
+                router.push({
+                    name: 'preliminary-examination',
+                })
+            }
+     
+    }
+    // router.push({
+    //     name: 'transfer-entry-sampling',
+    // })
 }
 
 //历史报告