导入loading

This commit is contained in:
weiwei committed 2025-07-02 15:57:15 +08:00
1 parent 2cc6f67c58
commit 24155690ca
2 files changed
+6 -5

No files matched your search

+1
View File
@@ -140,6 +140,7 @@ const handleFileSuccess = (response: any) => {
* 提交表单,触发上传 * 提交表单,触发上传
*/ */
const submitFileForm = () => { const submitFileForm = () => {
state.upload.isUploading = true
uploadRef.value.submit() uploadRef.value.submit()
} }
@@ -165,7 +165,7 @@ const loading = ref(false)
const loadingBack = ref(false) const loadingBack = ref(false)
const receiptRef = ref<HTMLElement | null>(null) const receiptRef = ref<HTMLElement | null>(null)
const deptOrUserInput = ref<HTMLInputElement | null>(null) const deptOrUserInput = ref<HTMLInputElement | null>(null)
let timer = null let timer
const isStamping = ref(false) // 盖章动画开关 const isStamping = ref(false) // 盖章动画开关
const receiptData = ref<ReceiptData>({ const receiptData = ref<ReceiptData>({
id: "", id: "",
@@ -210,7 +210,7 @@ const handleClose = () => {
timer = null timer = null
} }
// 发票退回 // 发票作废
const backInvoice = async () => { const backInvoice = async () => {
if (!receiptData.value.picUrl) { if (!receiptData.value.picUrl) {
useMessage().error("请先盖章") useMessage().error("请先盖章")
@@ -357,17 +357,17 @@ defineExpose({
@keyframes stamp-in { @keyframes stamp-in {
0% { 0% {
transform: translateY(-100px) scale(2) rotate(0); transform: translateY(-100px) scale(2);
opacity: 0.2; opacity: 0.2;
} }
60% { 60% {
transform: translateY(-10px) scale(1.5) rotate(0); transform: translateY(-10px) scale(1.5);
opacity: 1; opacity: 1;
} }
100% { 100% {
transform: translateY(0) scale(1) rotate(0); transform: translateY(0) scale(1);
opacity: 1; opacity: 1;
} }
} }