| | |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | |
| | | import { |
| | | BIDDING_MODE_MAP, |
| | | BIDDING_MODE_OPTIONS, |
| | | TENDER_STATUS_CELLTAG, |
| | | TENDER_STATUS_OPTIONS, |
| | | TENDER_TYPE_CELLTAG, |
| | |
| | | }, |
| | | }, |
| | | { |
| | | 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', |
| | |
| | | options: TENDER_STATUS_OPTIONS, |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'biddingMode', |
| | | label: '招投标模式', |
| | | component: 'Select', |
| | | componentProps: { |
| | | placeholder: '请选择招投标模式', |
| | | allowClear: true, |
| | | options: BIDDING_MODE_OPTIONS, |
| | | }, |
| | | }, |
| | | ]; |
| | | } |
| | | |
| | |
| | | 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 }, |