|
@@ -32,7 +32,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
<div v-if="totalData.length > 0" v-loading="totalLoaing" class="h-screen">
|
|
<div v-if="totalData.length > 0" v-loading="totalLoaing" class="h-screen">
|
|
<div v-for="(item, index) in totalData" :key="index">
|
|
<div v-for="(item, index) in totalData" :key="index">
|
|
<div class="hc-card-table-title">{{ item?.unitInfo }}</div>
|
|
<div class="hc-card-table-title">{{ item?.unitInfo }}</div>
|
|
@@ -54,7 +54,7 @@
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
<div v-else class=" h-screen">
|
|
<div v-else class=" h-screen">
|
|
<HcNoData />
|
|
<HcNoData />
|
|
</div>
|
|
</div>
|
|
@@ -90,6 +90,7 @@ import { useAppStore } from '~src/store'
|
|
import initialgApi from '~api/initial/initial'
|
|
import initialgApi from '~api/initial/initial'
|
|
import { arrToKey, getArrValue, isObjNull } from 'js-fast-way'
|
|
import { arrToKey, getArrValue, isObjNull } from 'js-fast-way'
|
|
import visualTable from './components/visual-table.vue'
|
|
import visualTable from './components/visual-table.vue'
|
|
|
|
+import { toPdfPage } from '~uti/btn-auth'
|
|
//变量
|
|
//变量
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
@@ -135,11 +136,11 @@ const getTotalData = async ()=>{
|
|
} else {
|
|
} else {
|
|
totalData.value = []
|
|
totalData.value = []
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
totalData.value = []
|
|
totalData.value = []
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -263,14 +264,14 @@ const writingConclusionClick = async () => {
|
|
const { error, code, data, msg } = await initialgApi.startInspect({
|
|
const { error, code, data, msg } = await initialgApi.startInspect({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
type:2,
|
|
type:2,
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
-
|
|
|
|
|
|
+
|
|
router.push({ name: 'transfer-writing-conclusion' })
|
|
router.push({ name: 'transfer-writing-conclusion' })
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -280,11 +281,11 @@ const submitReportClick = async () => {
|
|
const { error, code, data, msg } = await initialgApi.startInspect({
|
|
const { error, code, data, msg } = await initialgApi.startInspect({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
type:1,
|
|
type:1,
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
-
|
|
|
|
|
|
+
|
|
console.log(data, 'data')
|
|
console.log(data, 'data')
|
|
if (data) {
|
|
if (data) {
|
|
router.push({
|
|
router.push({
|
|
@@ -295,7 +296,7 @@ const submitReportClick = async () => {
|
|
name: 'transfer-preliminary-examination',
|
|
name: 'transfer-preliminary-examination',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
// router.push({
|
|
// router.push({
|
|
// name: 'transfer-entry-sampling',
|
|
// name: 'transfer-entry-sampling',
|
|
@@ -321,12 +322,12 @@ const onSubmitReportClick = async () => {
|
|
tableTitle.value = reportData.value[0].tableTitle
|
|
tableTitle.value = reportData.value[0].tableTitle
|
|
isSubmitReportDrawer.value = true
|
|
isSubmitReportDrawer.value = true
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
reportData.value = []
|
|
reportData.value = []
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
const pdfDate = ref(null)
|
|
const pdfDate = ref(null)
|
|
const curPdf = ref('')
|
|
const curPdf = ref('')
|
|
@@ -352,7 +353,8 @@ const previewClick = async ()=>{
|
|
})
|
|
})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
if (data) {
|
|
if (data) {
|
|
- window.open(data, '_blank')
|
|
|
|
|
|
+ toPdfPage(data)
|
|
|
|
+ //window.open(data, '_blank')
|
|
} else {
|
|
} else {
|
|
window.$message?.warning('文件不存在')
|
|
window.$message?.warning('文件不存在')
|
|
}
|
|
}
|