|
@@ -47,7 +47,10 @@
|
|
|
</template>
|
|
|
<div class="hc-card-body-flex">
|
|
|
<div v-if="batchPdfUrl" class="flex-iframe">
|
|
|
- <HcPdf :src="batchPdfUrl" @change="changeSealStrategy" />
|
|
|
+ <!-- <HcPdf :src="batchPdfUrl" @change="changeSealStrategy" /> -->
|
|
|
+ <KeepAlive>
|
|
|
+ <component :is="current" :id="getUUID()" :src="batchPdfUrl" @change="changeSealStrategy" />
|
|
|
+ </KeepAlive>
|
|
|
</div>
|
|
|
<div v-else class="flex-iframe hc-no-table-form">
|
|
|
<div class="table-form-no">
|
|
@@ -140,14 +143,14 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted, ref } from 'vue'
|
|
|
+import { onMounted, ref, shallowRef } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
import TableCard from './components/TableCard.vue'
|
|
|
import notableform from '~src/assets/view/notableform.svg'
|
|
|
import { getContractInfo } from '~api/other'
|
|
|
import tasksFlowApi from '~api/tasks/flow'
|
|
|
-import { arrToKey, getArrValue, isString } from 'js-fast-way'
|
|
|
+import { arrToKey, getArrValue, getUUID, isString } from 'js-fast-way'
|
|
|
import tasksApi from '~api/tasks/data'
|
|
|
import dayjs from 'dayjs'
|
|
|
import HcPdf from './components/hc-pdf1.vue'
|
|
@@ -172,6 +175,9 @@ onMounted(() => {
|
|
|
checkSmsCode()
|
|
|
getContractInfoList()
|
|
|
})
|
|
|
+
|
|
|
+//pdf
|
|
|
+const current = shallowRef(HcPdf)
|
|
|
//合同段信息
|
|
|
const contractList = ref([])
|
|
|
|