| | |
| | | <div class="app-container"> |
| | | |
| | | <div v-if="sho"> |
| | | <h2 class="title-border">添加案卷详细记录 {当前录入了{{total}}条} {当前档号为: {{recordStrId}} } {当前文号为: {{inquiryNumber}} } </h2> |
| | | <h2 class="title-border">添加案卷详细记录 {录入了{{total}}条} { {{recordStrId}} } { {{inquiryNumber}} } { {{filingNumber}} } </h2> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| | | |
| | | <el-row> |
| | |
| | | type="textarea" |
| | | rows="2" |
| | | v-auto-height="{ minRows: 2, maxRows: 10 }" |
| | | |
| | | v-model="form.creator" |
| | | placeholder="请输入责任者" |
| | | @input="handleCreatorInput" |
| | | @focus="showCreatorSuggestions = true" |
| | | @focus="(e) => e.target.select()" |
| | | |
| | | @keydown.up.prevent="handleKeyUp" |
| | | @keydown.down.prevent="handleKeyDown" |
| | | @keydown.enter.prevent="handleKeyEnter" |
| | | ref="creatorInput" |
| | | /> |
| | | <!-- 下拉建议框 --> |
| | | <div |
| | | v-if="showCreatorSuggestions && creatorSuggestions.length > 0" |
| | | v-if="showCreatorSuggestions && creatorSuggestions.length > 0 && false" |
| | | class="title-suggestions" |
| | | > |
| | | <div |
| | |
| | | rows="2" |
| | | v-model="form.title" |
| | | placeholder="请输入文件题名" |
| | | @input="handleTitleInput" |
| | | @focus="showTitleSuggestions = true" |
| | | @blur="handleTitleBlur" |
| | | @focus="(e) => e.target.select()" |
| | | /> |
| | | <!-- 下拉建议框 --> |
| | | <div |
| | | v-if="showTitleSuggestions && titleSuggestions.length > 0" |
| | | v-if="showTitleSuggestions && titleSuggestions.length > 0 && false" |
| | | class="title-suggestions" |
| | | > |
| | | <div |
| | |
| | | <el-input v-model="forms.documentNumber" placeholder="请输入文件编号" /> |
| | | </el-form-item> |
| | | <el-row> |
| | | <el-col :span="16"> |
| | | <el-col > |
| | | <el-form-item label="责任者" prop="creator"> |
| | | <el-input type="textarea" rows="1" v-model="forms.creator" placeholder="请输入责任者" /> |
| | | <el-input type="textarea" rows="2" |
| | | v-auto-height="{ minRows: 2, maxRows: 10 }" v-model="forms.creator" placeholder="请输入责任者" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | <el-form-item label="文件题名" prop="title"> |
| | | <el-input type="textarea" rows="1" v-model="forms.title" placeholder="请输入文件题名" /> |
| | | <el-input type="textarea" rows="2" |
| | | v-auto-height="{ minRows: 2, maxRows: 10 }" v-model="forms.title" placeholder="请输入文件题名" /> |
| | | </el-form-item> |
| | | <el-form-item label="日期" prop="date"> |
| | | <el-input v-model="forms.date" placeholder="请输入日期 (格式:yyyy-mm-dd)" style="width: 200px;" /> |
| | |
| | | import { updateStatusById } from "@/api/system/records" |
| | | |
| | | import {delArchiverecordstouserByReIdAndUid} from "@/api/system/archiverecordstouser" |
| | | |
| | | |
| | | |
| | | export default { |
| | | name: "Materials", |
| | | name: "ArchiveMaterialManager", |
| | | data() { |
| | | return { |
| | | //附件数量 |
| | |
| | | ], |
| | | recordId: null, |
| | | inquiryNumber: '', |
| | | filingNumber: '', |
| | | recordStrId: '', |
| | | // 遮罩层 |
| | | loading: true, |
| | |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | pageSize: 50, |
| | | creator: null, |
| | | title: null, |
| | | date: null, |
| | |
| | | const recordId = this.$route.params && this.$route.params.recordId |
| | | this.recordStrId = this.$route.params && this.$route.params.recordStrId |
| | | this.inquiryNumber = this.$route.params && this.$route.params.inquiryNumber |
| | | this.filingNumber = this.$route.params && this.$route.params.filingNumber |
| | | this.totalPageCount = this.$route.params && this.$route.params.pageCount |
| | | |
| | | this.sho = this.$route.params && this.$route.params.sho |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handleTabKey (event) { |
| | | // 默认行为 |
| | | event.preventDefault() |
| | | |
| | | // 手动全选 |
| | | const textarea = event.target |
| | | textarea.select() |
| | | |
| | | // 如果需要切换到下一个元素,可以手动触发 |
| | | // const focusableElements = getFocusableElements() |
| | | // moveFocusToNextElement() |
| | | }, |
| | | // 输入事件(示例:可根据输入内容过滤建议列表) |
| | | handleCreatorInput(val) { |
| | | // 重置选中索引 |
| | |
| | | this.$refs.upload.clearFiles(); |
| | | // 关闭上传对话框 |
| | | this.importDialogVisible = false; |
| | | // alert(123) |
| | | // 刷新列表数据 |
| | | getFileCount(recordId).then(response=>{ |
| | | getFileCount(this.recordId).then(response=>{ |
| | | this.fileCut = response.length |
| | | // alert(98) |
| | | // alert(this.fileCut) |
| | | this.getList(); |
| | | }) |
| | | this.getList(); |
| | | |
| | | } |
| | | }, |
| | | // 打开导入对话框 |