|
@@ -253,7 +253,7 @@ const tableFileData = ref([
|
|
])
|
|
])
|
|
|
|
|
|
//获取数据
|
|
//获取数据
|
|
-const tableFileLoading = ref(false)
|
|
|
|
|
|
+
|
|
const getTableFileData = async () => {
|
|
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',
|
|
|
|
+ // })
|
|
}
|
|
}
|
|
|
|
|
|
//历史报告
|
|
//历史报告
|