| | |
| | | const columns = defineColumns([ |
| | | { |
| | | id: '1', |
| | | enCode: 'date', |
| | | name: '任务日期', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'createdTime', |
| | | name: '提交时间', |
| | | }, |
| | | { |
| | | id: '2', |
| | | id: '3', |
| | | enCode: 'files', |
| | | name: '验收照片', |
| | | }, |
| | | { |
| | | id: '3', |
| | | id: '4', |
| | | enCode: 'checkReceiveStatus', |
| | | name: '验收状态', |
| | | }, |
| | | { |
| | | id: '4', |
| | | id: '5', |
| | | enCode: 'checkReceiveTime', |
| | | name: '验收时间', |
| | | }, |
| | |
| | | columnsRenderProps: { |
| | | createdTime: { type: 'date' }, |
| | | checkReceiveTime: { type: 'date' }, |
| | | date: { type: 'date' }, |
| | | checkReceiveStatus: { type: 'enum', valueEnum: EnumTaskUserSubmitCheckReceiveStatusText }, |
| | | files: { |
| | | type: 'url', |
| | |
| | | if (row.files?.length > 0) { |
| | | downloadWithZip( |
| | | row.files.map((x) => ({ |
| | | data: setOSSLink(x), |
| | | data: `${setOSSLink(x)}?${new Date().getTime()}`, |
| | | })), |
| | | '验收照片' |
| | | ); |