Bläddra i källkod

费用明细账单添加简爱模板

xyy@163.com 3 månader sedan
förälder
incheckning
40ec666dcd

+ 12 - 0
src/api/usermoneysum/apiUserMoneySum.ts

@@ -11,6 +11,7 @@ enum Api {
     yingChiMoneyReportdownload = '/api/userMoneyReport/yingChiMoneyReportdownload',//英驰模板
     fangCangMoneyReportdownload = '/api/userMoneyReport/fangCangMoneyReportdownload',//方仓模板
     downloadCompanyProfit = '/api/userMoneyReport/downloadCompanyProfit',//分公司利润报表
+    jianAiMoneyReportdownload = '/api/userMoneyReport/jianAiMoneyReportdownload',//简爱模板
     exchangeConvert = '/api/UserMoneyDetail/exchangeConvert',//汇兑
     queryCustomerNetPrintFee = '/api/apiData/queryCustomerNetPrintFee',//获取已打单末交货金额
     downloadRecharge = '/api/userMoneyReport/downloadRecharge',//充值记录导出
@@ -79,6 +80,17 @@ export const api_DownloadCompanyProfit = async (parms: UserMoneyDetailParam) =>
     return await http.download(Api.downloadCompanyProfit, parms)
 }
 
+/**
+ * 
+ * @param parms 简爱模板
+ * @returns 
+ */
+export const api_jianAiMoneyReportdownload = async (parms: UserMoneyDetailParam) => {
+    return await http.download(Api.jianAiMoneyReportdownload, parms)
+}
+
+
+
 /**
  * exchange 汇兑 
  */

+ 14 - 2
src/composables/userMoneySumDetail/userMoneySumDetail.ts

@@ -1,4 +1,4 @@
-import { api_DownloadCompanyProfit, api_FangCangMoneyReportdownload, api_UserBalance, api_UserMoneyDetail, api_XiKeMoneyReportdownload, api_YingChiMoneyReportdownload } from '@/api/usermoneysum/apiUserMoneySum';
+import { api_DownloadCompanyProfit, api_FangCangMoneyReportdownload, api_jianAiMoneyReportdownload, api_UserBalance, api_UserMoneyDetail, api_XiKeMoneyReportdownload, api_YingChiMoneyReportdownload } from '@/api/usermoneysum/apiUserMoneySum';
 import { UserMoneyDetailParam } from '@/api/usermoneysum/apiUserMoneySumModel';
 import { ActionOptions } from '@/components/DropDownButtons/type';
 import { BasicTableProps } from '@/components/VxeTable';
@@ -159,6 +159,12 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
     const { templateLoading: FangCangLoading, hanleOpenDownload: downloadFangCang } = useApiDownTemplate(api_FangCangMoneyReportdownload)
     // 分公司利润报表
     const { templateLoading: BranchProfitLoading, hanleOpenDownload: downloadBranchProfit } = useApiDownTemplate(api_DownloadCompanyProfit)
+
+    // 简爱
+    const { templateLoading: JianAiLoading, hanleOpenDownload: downloadJianAi } = useApiDownTemplate(api_jianAiMoneyReportdownload)
+
+
+
     const downLonading = computed(() => {
         return XiKeLoading.value || YingChiLoading.value || FangCangLoading.value || BranchProfitLoading.value
     })
@@ -295,7 +301,13 @@ function userMoneySumDetailList(usermoneyGridOptions: BasicTableProps) {
             } else if (dealData.reportType >= 5 && dealData.reportType <= 6) {
                 // 方仓相同模版
                 downloadFangCang(params)
-            } else {
+            } else if(dealData.reportType == 9)
+            {
+                // 简爱模板
+                downloadJianAi(params);
+            }
+            
+            else {
                 // 英驰相同模版
                 downloadYingChi(params)
             }

+ 9 - 1
src/composables/userMoneySumList/userMoneySumDetail.ts

@@ -1,4 +1,4 @@
-import { api_FangCangMoneyReportdownload, api_UserBalance, api_UserMoneyDetail, api_XiKeMoneyReportdownload, api_YingChiMoneyReportdownload } from '@/api/usermoneysum/apiUserMoneySum';
+import { api_FangCangMoneyReportdownload, api_UserBalance, api_UserMoneyDetail, api_XiKeMoneyReportdownload, api_YingChiMoneyReportdownload,api_jianAiMoneyReportdownload } from '@/api/usermoneysum/apiUserMoneySum';
 import { UserMoneyDetailParam, UserMoneyDetailRow } from '@/api/usermoneysum/apiUserMoneySumModel';
 import { ActionOptions } from '@/components/DropDownButtons/type';
 import { BasicTableProps } from '@/components/VxeTable';
@@ -81,6 +81,11 @@ function userMoneySumDetail(onClose: Function, onShow: Function, usermoneyGridOp
     // 方仓模板
     const { hanleOpenDownload: downloadFangCang } = useApiDownTemplate(api_FangCangMoneyReportdownload)
 
+    // 简爱
+    const { hanleOpenDownload: downloadJianAi } = useApiDownTemplate(api_jianAiMoneyReportdownload)
+
+    
+
     // 隐藏
     const onclose = () => {
         orderIdListhide()
@@ -144,6 +149,9 @@ function userMoneySumDetail(onClose: Function, onShow: Function, usermoneyGridOp
             case 2://方仓
                 downloadFangCang(queryUserMoneySumDetailForm)
                 break;
+            case 9:  // 简爱
+                downloadJianAi(queryUserMoneySumDetailForm)
+                break
             default:
                 break;
         }