|
@@ -324,16 +324,16 @@ const tableRowClick = async ({ row }) => {
|
|
|
// checkId.value = ''
|
|
|
|
|
|
|
|
|
- // const url = await viewPdf(row.id)
|
|
|
- // pdfUrl.value = url
|
|
|
- // if (pdfUrl.value && pdfUrl?.value.length > 0 && isCarrySpotChecksDrawer.value) {
|
|
|
- // setTimeout(() => {
|
|
|
- // if (isCarrySpotChecksDrawer.value) {
|
|
|
- // serReviewFile()
|
|
|
- // }
|
|
|
-
|
|
|
- // }, 30000)
|
|
|
- // }
|
|
|
+ const url = await viewPdf(row.id)
|
|
|
+ pdfUrl.value = url
|
|
|
+ if (pdfUrl.value && pdfUrl?.value.length > 0 && isCarrySpotChecksDrawer.value) {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (isCarrySpotChecksDrawer.value) {
|
|
|
+ serReviewFile()
|
|
|
+ }
|
|
|
+
|
|
|
+ }, 30000)
|
|
|
+ }
|
|
|
}
|
|
|
//获取卷内文件数据
|
|
|
const getArchiveFileListData = async ()=>{
|
|
@@ -372,13 +372,19 @@ const serReviewFile = async ()=>{
|
|
|
const { error, code, data, msg } = await inspectApi.setreview({
|
|
|
id: fileInfo.value.id,
|
|
|
})
|
|
|
+ if (!error && code === 200) {
|
|
|
+ window.$message.success('当前文件已抽检')
|
|
|
+
|
|
|
+ } else {
|
|
|
+ window.$message.error(msg)
|
|
|
+ }
|
|
|
}
|
|
|
const checkId = ref('')
|
|
|
const pdfUrl = ref('')
|
|
|
const isshowPdf = ref(true)
|
|
|
const pdfLoading = ref(false)
|
|
|
const changePdf = (row)=>{
|
|
|
- console.log(row, 'row')
|
|
|
+ console.log(row, 'row111111')
|
|
|
ishowFile.value = true
|
|
|
pdfLoading.value = false
|
|
|
isshowPdf.value = false
|