| | |
| | | plain |
| | | icon="Plus" |
| | | @click="openDialog('add',{})" |
| | | v-hasPermi="['docBorrowCopy:add']" |
| | | >新增</el-button> |
| | | </el-form-item> |
| | | <el-form-item v-if="isAdmin" label="企业:" > |
| | |
| | | <!-- 表格数据 --> |
| | | <el-table v-loading="loading" :data="dataList" :border="true"> |
| | | <el-table-column type="index" label="序号"></el-table-column> |
| | | <el-table-column prop="enactmentDate" align="center" label="检查表名称"> |
| | | <el-table-column prop="name" align="center" label="记录名称"> |
| | | <template #default="scope"> |
| | | {{scope.row.name + '记录'}} |
| | | {{scope.row.name }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <template #default="scope"> |
| | | <el-button link type="primary" @click="openDialog('view',scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['docBorrowCopy:edit']">编辑</el-button> |
| | | <el-button link type="primary" @click="downloadFile(scope.row)">导出</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['docBorrowCopy:del']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | return { |
| | | ...item, |
| | | index: index + 1, |
| | | distributionDate: item.distributionDate.substring(0,10), |
| | | collectionDate: item.collectionDate.substring(0,10) |
| | | borrowDate: item.borrowDate.substring(0,10), |
| | | backDate: item.backDate.substring(0,10) |
| | | } |
| | | }) |
| | | tableData.tabulationDate = tableData.tabulationDate.substring(0,10) |
| | | try { |
| | | generateWordDocument('/docDistributeRetrieve.docx', tableData, tableData.name +'文件发放/回收记录.docx'); |
| | | generateWordDocument('/docBorrowCopy.docx', tableData, tableData.name +'文件借阅/复制记录.docx'); |
| | | } catch (error){ |
| | | ElMessage({ |
| | | type: 'warning', |