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