| | |
| | | <el-table-column |
| | | label="发票" |
| | | prop="invoiceFileName" |
| | | width="120" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | > |
| | | <template #default="scope"> |
| | | <span v-if="scope.row.invoiceFileName">{{ |
| | | scope.row.invoiceFileName |
| | | }}</span> |
| | | <el-button |
| | | v-if="scope.row.invoiceFileName" |
| | | text |
| | | bg |
| | | type="primary" |
| | | @click="handleFile(scope.row.commonFiles)" |
| | | > |
| | | 查看附件 |
| | | </el-button> |
| | | <el-button |
| | | v-else |
| | | link |
| | | type="primary" |
| | | @click="handleDownload(scope.row)" |
| | | >上传</el-button |
| | | > |
| | | 上传 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" width="150" align="center"> |
| | |
| | | } |
| | | }; |
| | | |
| | | const handleFile = (commonFiles) => { |
| | | commonFiles.forEach((e) => { |
| | | proxy.$download.name(e.url); |
| | | }); |
| | | }; |
| | | |
| | | const clearRange = () => { |
| | | searchForm.invoiceDate = []; |
| | | searchForm.invoiceDateStart = undefined; |