liu
6 天以前 68b788ad34be439f4d68b3e3d2ee7bba1259555d
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,
@@ -35,7 +37,7 @@
      componentProps: { placeholder: '请输入招标编号' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -46,7 +48,7 @@
      componentProps: { placeholder: '请输入招标项目名称' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -60,7 +62,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -70,7 +72,7 @@
      componentProps: { placeholder: '请输入采购组织' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -80,7 +82,7 @@
      componentProps: { placeholder: '请输入项目负责人' },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -94,7 +96,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -110,7 +112,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -126,7 +128,7 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
@@ -142,7 +144,26 @@
      },
      dependencies: {
        triggerFields: ['_partial'],
        show: (partial: boolean) => !partial,
        show: (values) => !values._partial,
      },
    },
    {
      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,
        }),
      },
    },
    {
@@ -157,6 +178,19 @@
      label: '资质要求',
      component: 'Textarea',
      componentProps: { placeholder: '请输入资质要求', rows: 3 },
      formItemClass: 'col-span-2',
    },
    {
      fieldName: 'blobIds',
      label: '资质要求附件',
      component: 'FileUpload',
      componentProps: {
        valueKey: 'id',
        maxNumber: 10,
        multiple: true,
        accept: ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx'],
        helpText: '支持jpg、jpeg、png、pdf、doc、docx格式,单个文件不超过2MB',
      },
      formItemClass: 'col-span-2',
    },
  ];
@@ -197,6 +231,16 @@
        options: TENDER_STATUS_OPTIONS,
      },
    },
    {
      fieldName: 'biddingMode',
      label: '招投标模式',
      component: 'Select',
      componentProps: {
        placeholder: '请选择招投标模式',
        allowClear: true,
        options: BIDDING_MODE_OPTIONS,
      },
    },
  ];
}
@@ -217,6 +261,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 },