| | |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;"> |
| | | <div style="display: flex;align-items: center;justify-content: flex-end;margin-bottom: 10px"> |
| | | <el-button size="small" type="primary" @click="openAdd('新增')" style="margin-left: 20px;">新增</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-left: 20px;"> |
| | | <el-button size="small" type="primary" :loading="upLoading">导入</el-button></el-upload> |
| | | <el-button size="small" type="primary" style="margin-left: 20px" @click="$refs.importDialog.open()">导入</el-button> |
| | | </div> |
| | | <lims-table :tableData="tableData0" :column="column0" :page="page0" :tableLoading="tableLoading0" |
| | | :height="'calc(100vh - 290px)'" @pagination="pagination0"></lims-table> |
| | |
| | | <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="getList0" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import filePreview from '@/components/Preview/filePreview.vue' |
| | | import ImportDialog from '@/components/ImportDialog/index.vue' |
| | | import { |
| | | addManageRecordVerify, |
| | | pageManageRecordVerify, |
| | |
| | | components: { |
| | | filePreview, |
| | | limsTable, |
| | | ImportDialog, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | page: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 0, |
| | | current: 1, |
| | | }, |
| | | tableLoading: false, |
| | | tableData0: [], |
| | |
| | | page0: { |
| | | total: 0, |
| | | size: 10, |
| | | current: 0, |
| | | current: 1, |
| | | }, |
| | | tableLoading0: false, |
| | | title: '新增', |