From 3fdeac8cc2fca5494bfc76227ce41e36c6843818 Mon Sep 17 00:00:00 2001 From: George <1@gmail.com> Date: Fri, 31 Oct 2025 17:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E8=B4=B4=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/goldin.js | 11 +- src/components/MessageBox/index.vue | 2 +- src/locales/i18n/ar.js | 1 + src/locales/i18n/en.js | 1 + src/locales/i18n/es.js | 1 + src/locales/i18n/hi.js | 1 + src/locales/i18n/id.js | 1 + src/locales/i18n/ko.js | 1 + src/locales/i18n/th.js | 1 + src/locales/i18n/vi.js | 1 + src/locales/i18n/zh-cn.js | 1 + src/locales/i18n/zh-tw.js | 1 + src/views/capital/index.vue | 25 +++ src/views/capital/mtSubsidy.vue | 263 ++++++++++++++++++++++++++++ 14 files changed, 309 insertions(+), 2 deletions(-) create mode 100644 src/views/capital/mtSubsidy.vue diff --git a/src/api/goldin.js b/src/api/goldin.js index 195e649..cfe2dc5 100644 --- a/src/api/goldin.js +++ b/src/api/goldin.js @@ -52,4 +52,13 @@ export function calculatePresentedCredit(query) { method: 'get', params: query }) -} \ No newline at end of file +} + +// 申请补贴 +export function applySubsidy(data) { + return request({ + url: '/app/subsidy/apply', + method: 'post', + data + }) +} diff --git a/src/components/MessageBox/index.vue b/src/components/MessageBox/index.vue index bb08f54..6286daa 100644 --- a/src/components/MessageBox/index.vue +++ b/src/components/MessageBox/index.vue @@ -24,7 +24,7 @@ -
+
diff --git a/src/locales/i18n/ar.js b/src/locales/i18n/ar.js index 099a5d7..4fe2675 100644 --- a/src/locales/i18n/ar.js +++ b/src/locales/i18n/ar.js @@ -433,6 +433,7 @@ export default { "transfer": "تحويل", "fundout": "سحب العمولة", "fundtrans": "تحويل العمولة", + "subsidy": "طلب الإعانات", "leverageChange": "تعديل الضغط المالي", "passwordChange": "تغيير كلمة المرور الرئيسية", "investorPasswordChange": "تغيير كلمة المرور للمستثمر", diff --git a/src/locales/i18n/en.js b/src/locales/i18n/en.js index 4219cdd..411021d 100644 --- a/src/locales/i18n/en.js +++ b/src/locales/i18n/en.js @@ -433,6 +433,7 @@ export default { "transfer": "Transfer", "fundout": "Rebates Withdrawal", "fundtrans": "Rebates Transfer", + "subsidy": "Subsidy application", "leverageChange": "Adjust Leverage", "passwordChange": "Change Master Password", "investorPasswordChange": "Change Investor Password", diff --git a/src/locales/i18n/es.js b/src/locales/i18n/es.js index 33a5e31..3d6c7c2 100644 --- a/src/locales/i18n/es.js +++ b/src/locales/i18n/es.js @@ -433,6 +433,7 @@ export default { "transfer": "Transferir", "fundout": "Retiro de Rebates", "fundtrans": "Transferencia de Rebates", + "subsidy": "Solicitud de subvención", "leverageChange": "Ajustar Aliciente", "passwordChange": "Cambiar Contraseña Maestra", "investorPasswordChange": "Cambiar Contraseña de Inversor", diff --git a/src/locales/i18n/hi.js b/src/locales/i18n/hi.js index 00233cb..7a579d2 100644 --- a/src/locales/i18n/hi.js +++ b/src/locales/i18n/hi.js @@ -433,6 +433,7 @@ export default { "transfer": "ट्रांसफर", "fundout": "रिबेट निकासी", "fundtrans": "रिबेट ट्रांसफर", + "subsidy": "सब्सिडी आवेदन", "leverageChange": "लेवरेज समायोजित करें", "passwordChange": "मैस्टर पासवर्ड बदलें", "investorPasswordChange": "इनवेस्टर पासवर्ड बदलें", diff --git a/src/locales/i18n/id.js b/src/locales/i18n/id.js index 95d31d4..d75366b 100644 --- a/src/locales/i18n/id.js +++ b/src/locales/i18n/id.js @@ -433,6 +433,7 @@ export default { "transfer": "Transfer", "fundout": "Penarikan Rebate", "fundtrans": "Transfer Rebate", + "subsidy": "Aplikasi subsidi", "leverageChange": "Ubah Leverage", "passwordChange": "Ubah Password Utama", "investorPasswordChange": "Ubah Password Investor", diff --git a/src/locales/i18n/ko.js b/src/locales/i18n/ko.js index 40e0922..24752a0 100644 --- a/src/locales/i18n/ko.js +++ b/src/locales/i18n/ko.js @@ -433,6 +433,7 @@ export default { "transfer": "이체", "fundout": "리베이트 출금", "fundtrans": "리베이트 이체", + "subsidy": "보조금 신청", "leverageChange": "레버리지 조정", "passwordChange": "주 로그인 비밀번호 변경", "investorPasswordChange": "투자자 비밀번호 변경", diff --git a/src/locales/i18n/th.js b/src/locales/i18n/th.js index 3e4f9d3..7ffa9f8 100644 --- a/src/locales/i18n/th.js +++ b/src/locales/i18n/th.js @@ -433,6 +433,7 @@ export default { "transfer": "โอนย้าย", "fundout": "ถอนคืนค่าคอมมิชชั่น", "fundtrans": "โอนค่าคอมมิชชั่น", + "subsidy": "คำขอเงินอุดหนุน", "leverageChange": "ปรับเปลี่ยนกู้ยืม", "passwordChange": "เปลี่ยนรหัสผ่านหลัก", "investorPasswordChange": "เปลี่ยนรหัสผ่านนักลงทุน", diff --git a/src/locales/i18n/vi.js b/src/locales/i18n/vi.js index 8a37a5d..bf3f202 100644 --- a/src/locales/i18n/vi.js +++ b/src/locales/i18n/vi.js @@ -433,6 +433,7 @@ export default { "transfer": "Chuyển khoản", "fundout": "Rút hoa hồng", "fundtrans": "Chuyển hoa hồng", + "subsidy": "Đơn xin trợ cấp", "leverageChange": "Điều chỉnh Tỷ lệ_MARGIN", "passwordChange": "Đổi Mật khẩu chính", "investorPasswordChange": "Đổi Mật khẩu đầu tư", diff --git a/src/locales/i18n/zh-cn.js b/src/locales/i18n/zh-cn.js index eb0db6b..5f08030 100644 --- a/src/locales/i18n/zh-cn.js +++ b/src/locales/i18n/zh-cn.js @@ -433,6 +433,7 @@ export default { "transfer": "转账", "fundout": "佣金出金", "fundtrans": "佣金转账", + "subsidy": "补贴申请", "leverageChange": "调整杠杆", "passwordChange": "修改交易密码", "investorPasswordChange": "修改只读密码", diff --git a/src/locales/i18n/zh-tw.js b/src/locales/i18n/zh-tw.js index a4e1ffb..4e778db 100644 --- a/src/locales/i18n/zh-tw.js +++ b/src/locales/i18n/zh-tw.js @@ -433,6 +433,7 @@ export default { "transfer": "轉賬", "fundout": "佣金出金", "fundtrans": "佣金轉帳", + "subsidy": "補貼申請", "leverageChange": "調整槓桿", "passwordChange": "修改交易密碼", "investorPasswordChange": "修改只讀密碼", diff --git a/src/views/capital/index.vue b/src/views/capital/index.vue index 95f9196..a569217 100644 --- a/src/views/capital/index.vue +++ b/src/views/capital/index.vue @@ -13,6 +13,7 @@
{{ t('home.transfer') }}
{{ t('home.fundout') }}
{{ t('home.fundtrans') }}
+
{{ t('home.subsidy') }}
@@ -463,6 +464,9 @@ v-model:limit="queryFundTransferParams.page_size" @pagination="getList" /> +
+ +
@@ -491,6 +495,7 @@ import { generateShortcuts } from '@/utils/shortcutsUtils'; import dayjs from 'dayjs' import PayChannel from './payChannel' import MtGoldOut from "./mtGoldOut.vue" +import MtSubsidy from "./mtSubsidy.vue" import MtTrans from "./mtTrans.vue"; import FundTrans from "./ibTrans.vue"; import FundGoldOut from "./ibGoldOut.vue"; @@ -539,6 +544,7 @@ const loadingGoldout = ref(false); const loadingTransfer = ref(false); const loadingFundout = ref(false); const loadingFundTransfer = ref(false); +const loadingSubsidy = ref(false); const loadingCancelMtGoldOut = ref(false); const loadingCancelFundOut = ref(false); @@ -695,6 +701,8 @@ function getList() { queryFundout() } else if (activeMtName.value == 'fundTransfer' && permissionStore.powerList.includes('applyFundTransfer')) { queryFundTransfer() + } else if (activeMtName.value == 'subsidy') { + querySubsidy() } } @@ -783,6 +791,23 @@ function queryFundTransfer() { }) } +function querySubsidy() { + loadingSubsidy.value = true; + if (goldoutDateRange.value && goldoutDateRange.value.length) { + queryGoldOutParams.value.date_1_start = goldoutDateRange.value[0] + queryGoldOutParams.value.date_1_end = goldoutDateRange.value[1] + } else { + queryGoldOutParams.value.date_1_start = undefined + queryGoldOutParams.value.date_1_end = undefined + } + queryMyGoldOutList(queryGoldOutParams.value).then(response => { + goldoutList.value = response.data.records; + goldoutCols.value = response.data.columns; + goldoutTotal.value = response.data.totalRecords; + loadingSubsidy.value = false; + }) +} + /** 搜索按钮操作 */ function handleQuery() { if (activeMtName.value == 'goldin') { diff --git a/src/views/capital/mtSubsidy.vue b/src/views/capital/mtSubsidy.vue new file mode 100644 index 0000000..fa758a9 --- /dev/null +++ b/src/views/capital/mtSubsidy.vue @@ -0,0 +1,263 @@ + + + + + + \ No newline at end of file