|
@@ -181,7 +181,13 @@
|
|
|
</hc-new-dialog>
|
|
|
<!-- 上传附件 -->
|
|
|
<hc-new-dialog v-model="isAttachment" title="上传文件" is-footer-center widths="30rem" @close="attachmentClose">
|
|
|
- <hc-form-upload v-model="formUploadFile" is-res :options="{ type: 'list', props: uploadFormProps, isArr: true, num: 0 }" @success="fileUploadSuccess" />
|
|
|
+ <hc-form-upload
|
|
|
+ v-model="formUploadFile"
|
|
|
+ is-res
|
|
|
+ :options="{ type: 'list', props: uploadFormProps, isArr: true, num: 0 }"
|
|
|
+ @success="fileUploadSuccess"
|
|
|
+ @item="uploadFileItem"
|
|
|
+ />
|
|
|
<template #footer>
|
|
|
<el-button hc-btn @click="attachmentClose">取消</el-button>
|
|
|
<el-button hc-btn type="primary" @click="attachmentSave">确认</el-button>
|
|
@@ -193,6 +199,7 @@
|
|
|
import dayjs from 'dayjs'
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
+import { toPdfPage } from '~uti/btn-auth'
|
|
|
import { isNumberReg } from '~uti/tools'
|
|
|
import mainApi from '~api/debit-pay/material/material'
|
|
|
import { deepClone, formValidate, getArrValue, getObjValue, isNullES, newWindow } from 'js-fast-way'
|
|
@@ -646,6 +653,13 @@ const delFile = (index) => {
|
|
|
tableData2.value.splice(index, 1)
|
|
|
}
|
|
|
|
|
|
+//文件被点击
|
|
|
+const uploadFileItem = ({ file }) => {
|
|
|
+ const { url } = getObjValue(file)
|
|
|
+ if (isNullES(url)) return
|
|
|
+ toPdfPage(url)
|
|
|
+}
|
|
|
+
|
|
|
//保存
|
|
|
const saveLoaing = ref(false)
|
|
|
const modalSave = async () => {
|