| | |
| | | </div> |
| | | <div> |
| | | <el-button size="small" type="primary" @click="openAdd('新增')">新增</el-button> |
| | | <el-upload :action="action" :multiple="false" :show-file-list="false" accept='.doc,.docx' |
| | | :headers="uploadHeader" :on-change="beforeUpload" :on-error="onError" ref='upload' |
| | | :on-success="handleSuccessUp" style="display: inline-block;margin: 0 8px"> |
| | | <el-button type="primary" size="small">导入</el-button></el-upload> |
| | | <el-button type="primary" size="small" style="margin: 0 8px" @click="$refs.importDialog.open()">导入</el-button> |
| | | <el-button size="small" type="primary" @click="handleDown" :loading="outLoading">导出</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <el-button :loading="uploading" type="primary" @click="submitProduct('addForm')">确 认</el-button> |
| | | </span></template> |
| | | </el-dialog> |
| | | <import-dialog |
| | | ref="importDialog" |
| | | title="导入文件审批记录" |
| | | :action="action" |
| | | accept=".doc,.docx" |
| | | template-url="/import-templates/文件审批记录导入模板.docx" |
| | | template-name="文件审批记录导入模板.docx" |
| | | :tips="['请勿删除表头或增删列,数据从第 2 行开始填写', '编制/审核/批准填写系统用户姓名', '批准日期格式:YYYY-MM-DD']" |
| | | @success="refreshTable" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import ImportDialog from '@/components/ImportDialog/index.vue' |
| | | import { |
| | | selectUserCondition, |
| | | } from "@/api/business/inspectionTask.js"; |
| | |
| | | export default { |
| | | name: 'ApprovalRecord', |
| | | components: { |
| | | limsTable |
| | | limsTable, |
| | | ImportDialog |
| | | }, |
| | | data() { |
| | | return { |