Sfoglia il codice sorgente

feat(ledger): add import function for special leave record

add the import api and page entry for special leave record sheet
huoyi 2 settimane fa
parent
commit
6f627d687a
2 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 3 0
      src/api/ledger/index.js
  2. 11 0
      src/views/ledger/import/index.vue

+ 3 - 0
src/api/ledger/index.js

@@ -17,6 +17,9 @@ export function downloadLedgerTemplate(params) {
17 17
 }
18 18
 
19 19
 // ===== 台账一键导入 =====
20
+export function importLeaveSpecial(data) {
21
+  return request({ url: '/ledger/import/leaveSpecial', method: 'post', data })
22
+}
20 23
 export function importSupervisionProblem(data) {
21 24
   return request({ url: '/ledger/import/supervisionProblem', method: 'post', data })
22 25
 }

+ 11 - 0
src/views/ledger/import/index.vue

@@ -142,6 +142,7 @@ import {
142 142
   importTerminalBonus,
143 143
   importExamScore,
144 144
   importRewardApproval,
145
+  importLeaveSpecial,
145 146
   importDailyTraining,
146 147
   importLeaderDuty,
147 148
   importHealthSoldier,
@@ -315,6 +316,15 @@ const importItems = reactive([
315 316
     lastResult: null
316 317
   },
317 318
   {
319
+    key: 'leaveSpecial',
320
+    title: '请、休假记录表(特殊)',
321
+    desc: '请、休假记录表(特殊)',
322
+    icon: 'Calendar',
323
+    api: importLeaveSpecial,
324
+    loading: false,
325
+    lastResult: null
326
+  },
327
+  {
318 328
     key: 'seizureStats',
319 329
     title: '2026查获违规品统计',
320 330
     desc: '查获违规品统计数据',
@@ -350,6 +360,7 @@ const importItems = reactive([
350 360
     loading: false,
351 361
     lastResult: null
352 362
   },
363
+
353 364
   // {
354 365
   //   key: 'dailyTraining',
355 366
   //   title: '日常培训记录',