2026-08-04 1498eff8df14d0c4963fa32745ecb2a495eac3cb
refactor(srm): 重构供应商证书字段命名并修复表单依赖逻辑

- 将供应商证书中的 issueDate 字段重命名为 validStartDate
- 将供应商证书中的 expireDate 字段重命名为 validEndDate
- 将供应商证书 API 中的 expireStatus 字段重命名为 status
- 修复招标模块中表单依赖的参数传递逻辑
- 优化 CRM 应收账款表单提交时的 ID 处理机制
- 简化回款计划详情列表的数据传递方式
已修改6个文件
42 ■■■■■ 文件已修改
src/api/srm/supplierCertificate/index.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/crm/receivable/modules/form.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/crm/receivable/plan/components/detail-list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/crm/receivable/plan/modules/form.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/srm/supplierCertificate/data.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/srm/tender/data.ts 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/srm/supplierCertificate/index.ts
@@ -11,9 +11,9 @@
    certificateNo?: string;
    certificateType: number;
    issuingAuthority?: string;
    issueDate: string;
    expireDate: string;
    expireStatus?: number;
    validStartDate: string;
    validEndDate: string;
    status?: number;
    remark?: string;
    createTime?: string;
  }
src/views/crm/receivable/modules/form.vue
@@ -84,6 +84,10 @@
    modalApi.lock();
    // 提交表单
    const data = (await formApi.getValues()) as CrmReceivableApi.Receivable;
    // 编辑时需要把 id 补回提交数据(表单 schema 不含 id 字段)
    if (formData.value?.id) {
      data.id = formData.value.id;
    }
    try {
      await (formData.value?.id
        ? updateReceivable(data)
src/views/crm/receivable/plan/components/detail-list.vue
@@ -44,7 +44,7 @@
/** 编辑回款计划 */
function handleEdit(row: CrmReceivablePlanApi.Plan) {
  formModalApi.setData({ receivablePlan: row }).open();
  formModalApi.setData(row).open();
}
/** 删除回款计划 */
src/views/crm/receivable/plan/modules/form.vue
@@ -45,6 +45,10 @@
    modalApi.lock();
    // 提交表单
    const data = (await formApi.getValues()) as CrmReceivablePlanApi.Plan;
    // 编辑时需要把 id 补回提交数据(表单 schema 不含 id 字段)
    if (formData.value?.id) {
      data.id = formData.value.id;
    }
    try {
      await (formData.value?.id
        ? updateReceivablePlan(data)
src/views/srm/supplierCertificate/data.ts
@@ -60,7 +60,7 @@
      componentProps: { placeholder: '请输入颁发机构' },
    },
    {
      fieldName: 'issueDate',
      fieldName: 'validStartDate',
      label: '颁发日期',
      component: 'DatePicker',
      componentProps: {
@@ -71,7 +71,7 @@
      },
    },
    {
      fieldName: 'expireDate',
      fieldName: 'validEndDate',
      label: '到期日期',
      component: 'DatePicker',
      componentProps: {
@@ -140,8 +140,8 @@
      cellRender: { name: 'CellTag', props: CERTIFICATE_TYPE_CELLTAG },
    },
    { field: 'issuingAuthority', title: '颁发机构', minWidth: 120 },
    { field: 'issueDate', title: '颁发日期', minWidth: 120 },
    { field: 'expireDate', title: '到期日期', minWidth: 120 },
    { field: 'validStartDate', title: '颁发日期', minWidth: 120 },
    { field: 'validEndDate', title: '到期日期', minWidth: 120 },
    { field: 'createTime', title: '创建时间', minWidth: 160 },
    {
      title: '操作',
src/views/srm/tender/data.ts
@@ -35,7 +35,7 @@
      componentProps: { placeholder: '请输入招标编号' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -46,7 +46,7 @@
      componentProps: { placeholder: '请输入招标项目名称' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -60,7 +60,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -70,7 +70,7 @@
      componentProps: { placeholder: '请输入采购组织' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -80,7 +80,7 @@
      componentProps: { placeholder: '请输入项目负责人' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -94,7 +94,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -110,7 +110,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -126,7 +126,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -142,7 +142,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {