zhengyiming
2025-11-26 752badd812a5fab53770033cd8d33d2f4d85d6e4
fix: 多模板
8个文件已修改
1个文件已添加
120 ■■■■■ 已修改文件
src/hooks/fourStreams.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/IndustrialPark.ts 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/WaterDropCloud.ts 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/index.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/services/api/typings.d.ts 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/MaterialReview/MaterialReviewDetail.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/MaterialReview/components/MaterialReviewAuditView.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Reward/RewardDeclareDetail.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Reward/RewardGrantRegister.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/hooks/fourStreams.ts
@@ -91,10 +91,11 @@
  id?: Ref<string>;
  applyMonth?: Ref<string>;
  enableUploadExtraFiles?: boolean;
  bountyTemplateId?: Ref<string>;
};
export function useDeclareEnterpriseTable(options: UseDeclareEnterpriseTableOptions = {}) {
  const { id, applyMonth, enableUploadExtraFiles = false } = options;
  const { id, applyMonth, enableUploadExtraFiles = false, bountyTemplateId } = options;
  const {
    getDataSource: getList,
@@ -158,14 +159,16 @@
    try {
      const applyFilesRes = await queryClient.ensureQueryData({
        queryKey: [
          'enterpriseApplyFileServices/getCustomerUploadApplyFiles',
          'enterpriseApplyFileServices/getCustomerUploadApplyFilesV2',
          row.enterpriseId,
          applyMonth.value,
          bountyTemplateId.value,
        ],
        queryFn: async () => {
          return await enterpriseApplyFileServices.getCustomerUploadApplyFiles({
          return await enterpriseApplyFileServices.getCustomerUploadApplyFilesV2({
            enterpriseId: row.enterpriseId,
            withMonth: applyMonth.value,
            bountyTemplateId: bountyTemplateId.value,
          });
        },
      });
src/services/api/IndustrialPark.ts
@@ -99,6 +99,24 @@
  );
}
/** 查询园区奖励金模板名称 POST /api/IndustrialPark/GetIndustrialPartBountyTemplates */
export async function getIndustrialPartBountyTemplates(
  body: API.GetIndustrialPartBountyTemplatesInput,
  options?: API.RequestConfig
) {
  return request<API.GetIndustrialPartBountyTemplatesOutput>(
    '/api/IndustrialPark/GetIndustrialPartBountyTemplates',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 设置奖励金申报状态 POST /api/IndustrialPark/SetIndustrialParkRewardEnable */
export async function setIndustrialParkRewardEnable(
  body: API.SetIndustrialParkRewardEnableInput,
src/services/api/WaterDropCloud.ts
New file
@@ -0,0 +1,11 @@
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
/** 同步客户材料 POST /api/WaterDropCloud/SyncCompanyMaterial */
export async function syncCompanyMaterial(options?: API.RequestConfig) {
  return request<any>('/api/WaterDropCloud/SyncCompanyMaterial', {
    method: 'POST',
    ...(options || {}),
  });
}
src/services/api/index.ts
@@ -90,6 +90,7 @@
import * as Version from './Version';
import * as Wallet from './Wallet';
import * as WalletChannel from './WalletChannel';
import * as WaterDropCloud from './WaterDropCloud';
import * as Withdraw from './Withdraw';
import * as WxNotify from './WxNotify';
import * as WxPayNotify from './WxPayNotify';
@@ -182,6 +183,7 @@
  Version,
  Wallet,
  WalletChannel,
  WaterDropCloud,
  Withdraw,
  WxNotify,
  WxPayNotify,
src/services/api/typings.d.ts
@@ -249,7 +249,7 @@
    /** 是否支持财政拨付 */
    suportFinance?: boolean;
    /** 文件 */
    industrialParkApplyFileFile?: IndustrialParkApplyFileFile[];
    bountTemplates?: AddIndustrialParkInputBountTemplate[];
    /** 无需政务端审核 */
    notNeedGovernmentAudit?: boolean;
    /** 无需运营端审核 */
@@ -258,6 +258,15 @@
    dualReviewOfGovernmentAffairs?: boolean;
    /** 公司信息 */
    industrialParkCompanyFile?: IndustrialParkCompanyFile[];
  }
  interface AddIndustrialParkInputBountTemplate {
    /** 模板Id */
    templateId?: string;
    /** 模板名称 */
    templateName?: string;
    /** 文件 */
    items?: IndustrialParkApplyFileFile[];
  }
  interface AddIndustryBodyAuditInput {
@@ -467,6 +476,8 @@
  interface AddParkBountyApplyStepOneInput {
    batchNo?: string;
    parkId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    applyMonth?: string;
    removeCompanyIds?: string[];
  }
@@ -1398,6 +1409,7 @@
  interface APIgetCustomerFileTypeHeadParams {
    enterpriseId?: string;
    templateId?: string;
  }
  interface APIgetCustomerTemplateDetailParams {
@@ -5851,6 +5863,8 @@
    applyAmount?: number;
    fileTypes?: CustomerUploadMonthApplyFileType[];
    enterpriseId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    /** 是否是运营端代上传 */
    isAdminFileUpload?: boolean;
  }
@@ -5880,6 +5894,8 @@
    applyAmount?: number;
    fileTypes?: CustomerUploadMonthApplyFileType[];
    enterpriseId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    /** 是否是运营端代上传 */
    isAdminFileUpload?: boolean;
    /** 汇总材料 */
@@ -7722,6 +7738,8 @@
  interface GetCustomerUploadApplyFilesInput {
    id?: string;
    enterpriseId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    userId?: string;
    withMonth?: string;
    parkBountyApplyId?: string;
@@ -7746,6 +7764,8 @@
  interface GetCustomerUploadApplyFilesResponse {
    /** 所属月份 */
    withMonth?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    /** 企业名称 */
    enterpriseName?: string;
    /** 申报金额 */
@@ -7759,6 +7779,8 @@
  interface GetCustomerUploadApplyFilesV2Response {
    /** 所属月份 */
    withMonth?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    /** 企业名称 */
    enterpriseName?: string;
    /** 申报金额 */
@@ -7775,6 +7797,8 @@
  interface GetCustomerUploadFileRecordInput {
    withMonth?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    userId?: string;
  }
@@ -8215,6 +8239,21 @@
    categoryId?: string;
    /** 查询条件:产品名称/服务商名称 */
    queryCondition?: string;
  }
  interface GetIndustrialPartBountyTemplatesInput {
    /** 园区Id */
    id?: string;
  }
  interface GetIndustrialPartBountyTemplatesOutput {
    /** 奖励金模板名称 */
    bountyTemplates?: GetIndustrialPartBountyTemplatesOutputItem[];
  }
  interface GetIndustrialPartBountyTemplatesOutputItem {
    id?: string;
    templateName?: string;
  }
  interface GetInformationAdvertiseByCategoryInput {
@@ -9605,6 +9644,8 @@
  interface GetParkCollectFileTypeListInput {
    parkId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
    searchType?: number;
  }
@@ -11725,8 +11766,18 @@
    registerAddress?: string;
    /** 备注 */
    remark?: string;
    industrialParkFileTypeList?: IndustrialParkFileTypeOutput[];
    /** 奖励金模板 */
    bountyTemplates?: IndustrialParkDetailOutputFileTypeTemplate[];
    industrialParkCompanyList?: IndustrialParkCompanyOutput[];
  }
  interface IndustrialParkDetailOutputFileTypeTemplate {
    /** 模板Id */
    templateId?: string;
    /** 模板名称 */
    templateName?: string;
    /** 材料 */
    items?: IndustrialParkFileTypeOutput[];
  }
  interface IndustrialParkDropDownOutput {
@@ -16659,6 +16710,10 @@
  interface OutCheckParkBountyApplyBaseInfo {
    /** 申请批次号 */
    batchNo?: string;
    /** 奖励金模板 */
    bountyTemplateId?: string;
    /** 奖励金模板名称 */
    bountyTemplateName?: string;
    /** 申请园区Id */
    parkId?: string;
    /** 申请园区 */
@@ -22899,7 +22954,7 @@
    /** 是否支持财政拨付 */
    suportFinance?: boolean;
    /** 文件 */
    industrialParkApplyFileFile?: IndustrialParkApplyFileFile[];
    bountTemplates?: AddIndustrialParkInputBountTemplate[];
    /** 无需政务端审核 */
    notNeedGovernmentAudit?: boolean;
    /** 无需运营端审核 */
@@ -23587,6 +23642,8 @@
    fileSearchTypeId?: string;
    listFiles?: CustomerUploadMonthApplyFileTypeDto[];
    enterpriseId?: string;
    /** 奖励金模板Id */
    bountyTemplateId?: string;
  }
  interface UploadParkApplyCustomerFilesInput {
src/views/MaterialReview/MaterialReviewDetail.vue
@@ -122,6 +122,8 @@
  suportPlatRecharge: false,
  suportFinance: false,
  bountyTemplateId: '',
});
const { addRewardApplyStep3Columns } = useAddRewardApplyStep3Columns({
@@ -133,6 +135,7 @@
  useDeclareEnterpriseTable({
    id: ref(id),
    applyMonth: toRef(form, 'applyMonth'),
    bountyTemplateId: toRef(form, 'bountyTemplateId'),
  });
const tableRef = ref<InstanceType<typeof DeclareEnterpriseTableView>>();
@@ -174,6 +177,8 @@
    form.suportFinance = data.suportFinance;
    form.reasonForWithdrawal = data.reasonForWithdrawal ?? '';
    form.bountyTemplateId = data.bountyTemplateId ?? '';
    getList();
  },
});
src/views/MaterialReview/components/MaterialReviewAuditView.vue
@@ -126,6 +126,7 @@
  suportPlatRecharge: false,
  suportFinance: false,
  bountyTemplateId: '',
});
const { addRewardApplyStep3Columns } = useAddRewardApplyStep3Columns({
@@ -138,6 +139,7 @@
    id: ref(id),
    applyMonth: toRef(form, 'applyMonth'),
    enableUploadExtraFiles: true,
    bountyTemplateId: toRef(form, 'bountyTemplateId'),
  });
const { data: detail, isLoading } = useQuery({
@@ -172,6 +174,8 @@
    form.suportPlatRecharge = data.suportPlatRecharge;
    form.suportFinance = data.suportFinance;
    form.bountyTemplateId = data.bountyTemplateId;
    getList();
  },
});
src/views/Reward/RewardDeclareDetail.vue
@@ -63,6 +63,7 @@
  extraListFiles: [] as CustomerApplyFileTypeListItem[],
  suportPlatRecharge: false,
  suportFinance: false,
  bountyTemplateId: '',
});
const { addRewardApplyStep3Columns } = useAddRewardApplyStep3Columns({
@@ -74,6 +75,7 @@
  useDeclareEnterpriseTable({
    id: ref(id),
    applyMonth: toRef(form, 'applyMonth'),
    bountyTemplateId: toRef(form, 'bountyTemplateId'),
  });
const { data: detail, isLoading } = useQuery({
@@ -107,6 +109,8 @@
    form.suportPlatRecharge = data.suportPlatRecharge;
    form.suportFinance = data.suportFinance;
    form.bountyTemplateId = data.bountyTemplateId;
    getList();
  },
});
src/views/Reward/RewardGrantRegister.vue
@@ -101,6 +101,7 @@
  suportPlatRecharge: false,
  suportFinance: false,
  bountyTemplateId: '',
});
const { rewardGrantRegisterColumns } = useRewardGrantRegisterColumns();
@@ -109,6 +110,7 @@
  useDeclareEnterpriseTable({
    id: ref(id),
    applyMonth: toRef(form, 'applyMonth'),
    bountyTemplateId: toRef(form, 'bountyTemplateId'),
  });
const registerOperationBtns = defineOperationBtns([
@@ -170,6 +172,8 @@
    form.suportPlatRecharge = data.suportPlatRecharge;
    form.suportFinance = data.suportFinance;
    form.bountyTemplateId = data.bountyTemplateId;
    getList();
  },
});