{{ $t("excel.operationNotice") }}
@@ -40,13 +24,8 @@
{{ $t("excel.fileFormat") }}
- {{ $t("excel.downloadTemplate") }}
+ {{ $t("excel.downloadTemplate") }}
@@ -62,7 +41,8 @@
-
+
@@ -80,6 +60,7 @@ import { useUserInfo } from "/@/stores/userInfo"
import other from "/@/utils/other"
import { Session } from "/@/utils/storage"
import { auths } from "/@/utils/authFunction"
+import * as walletRechargeApplyApi from "/@/api/wallet/wallet-recharge-apply"
const {
userInfos: { roleCodes },
@@ -183,9 +164,20 @@ const submitFileForm = async () => {
uploadRef.value.submit()
return
}
-
- const valid = await dataFormRef.value.validate().catch(() => {})
+ const valid = await dataFormRef.value.validate().catch(() => { })
if (!valid) return
+ try {
+ state.upload.isUploading = true
+ await walletRechargeApplyApi.saveTopup({ ...form })
+ state.upload.open = false
+ useMessage().success("导入成功充值")
+ emit?.("refreshDataList")
+ } catch (error: any) {
+ console.error(error);
+ useMessage().error(error.msg || "新增充值数据错误")
+ } finally {
+ state.upload.isUploading = false
+ }
}
/**
diff --git a/src/views/wallet/wallet-recharge-invoice/index.vue b/src/views/wallet/wallet-recharge-invoice/index.vue
index fc8e8b9..f9e4b3e 100644
--- a/src/views/wallet/wallet-recharge-invoice/index.vue
+++ b/src/views/wallet/wallet-recharge-invoice/index.vue
@@ -1,30 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("common.queryBtn")
+ }}
+ {{ $t("common.resetBtn") }}
+
+
+
-
+
导 入
-
+
-
+
@@ -57,32 +67,23 @@
-
+
打印发票
-
+
删除
-
+
-
+