Browse Source

收款账单
新增文件类型数据源

leiy 11 months ago
parent
commit
f5988ba665
1 changed files with 20 additions and 2 deletions
  1. 20 2
      OASystem/OASystem.Api/Controllers/FinancialController.cs

+ 20 - 2
OASystem/OASystem.Api/Controllers/FinancialController.cs

@@ -784,6 +784,26 @@ namespace OASystem.API.Controllers
             }
         }
 
+
+        /// <summary>
+        /// 已收账单 
+        /// File Downloasd
+        /// Init 
+        /// </summary>
+        /// <param name="dto"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
+        public async Task<IActionResult> PostReceivablesFeilDownloadInit()
+        {
+            return Ok(JsonView(true, "操作成功!", new List<dynamic> {
+                new { Id = 1, Name = "生成收款单(四川)" },
+                new { Id = 2, Name = "生成收款单(北京)" },
+                new { Id = 3, Name = "汇款账单" }
+            }
+            ));
+        }
+
         /// <summary>
         /// 已收账单 
         /// File Downloasd
@@ -823,8 +843,6 @@ namespace OASystem.API.Controllers
                     if (dto.FileType == 1) tempName = $"收款账单(四川)模板.docx";
                     else if (dto.FileType == 2) tempName = $"收款账单(北京)模板.docx";
 
-
-
                     string tempPath = AppSettingsHelper.Get("WordBasePath") + $"ForeignReceivables/Temp/{tempName}";
                     //载入模板
                     Document doc = new Document(tempPath);