gaoluyang
2026-08-07 a3057955f855b8a266c017df00645845e7471410
src/views/srm/tender/data.ts
@@ -2,6 +2,8 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import {
  BIDDING_MODE_MAP,
  BIDDING_MODE_OPTIONS,
  TENDER_STATUS_CELLTAG,
  TENDER_STATUS_OPTIONS,
  TENDER_TYPE_CELLTAG,
@@ -146,6 +148,25 @@
      },
    },
    {
      fieldName: 'biddingMode',
      label: '招投标模式',
      component: 'Select',
      rules: 'required',
      componentProps: {
        placeholder: '请选择招投标模式',
        options: BIDDING_MODE_OPTIONS,
      },
      dependencies: {
        triggerFields: ['_partial', 'id'],
        show: (values) => !values._partial,
        componentProps: (values) => ({
          disabled: !!values.id,
          placeholder: '请选择招投标模式',
          options: BIDDING_MODE_OPTIONS,
        }),
      },
    },
    {
      fieldName: 'tenderDesc',
      label: '招标说明',
      component: 'Textarea',
@@ -197,6 +218,16 @@
        options: TENDER_STATUS_OPTIONS,
      },
    },
    {
      fieldName: 'biddingMode',
      label: '招投标模式',
      component: 'Select',
      componentProps: {
        placeholder: '请选择招投标模式',
        allowClear: true,
        options: BIDDING_MODE_OPTIONS,
      },
    },
  ];
}
@@ -217,6 +248,12 @@
      minWidth: 100,
      cellRender: { name: 'CellTag', props: TENDER_STATUS_CELLTAG },
    },
    {
      field: 'biddingMode',
      title: '招标模式',
      minWidth: 100,
      formatter: ({ cellValue }) => BIDDING_MODE_MAP[cellValue] || cellValue,
    },
    { field: 'budgetAmount', title: '预算金额', minWidth: 120 },
    { field: 'purchaseOrg', title: '采购组织', minWidth: 100 },
    { field: 'startTime', title: '开始时间', minWidth: 160 },