Commit 77ca37cb115e0218232994154596fe78ef196d74
1 parent
90511f6d
档案借阅
Showing
6 changed files
with
390 additions
and
93 deletions
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectBoxMapper.xml
| ... | ... | @@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 47 | 47 | </resultMap> |
| 48 | 48 | |
| 49 | 49 | <sql id="selectArchivesCollectBoxVo"> |
| 50 | - select id,box_id,dept_id general, year, title, sort, safekeeping_date, secret_level, pages, filing_number, zk_number, location_code, filing_dept, archival_code, responsibility_name, serial_mark, piece_mark, register_mark, counsellors, filing_name, summary_name, record_type, carrier_type, draft_name, page, document_mark, text, create_by, create_time, update_by, update_time, status, apprvoal, belong_role, box_mark,expire_date, remove, borrow_status from archives_collect_box | |
| 50 | + select id,box_id,dept_id, general, year, title, sort, safekeeping_date, secret_level, pages, filing_number, zk_number, location_code, filing_dept, archival_code, responsibility_name, serial_mark, piece_mark, register_mark, counsellors, filing_name, summary_name, record_type, carrier_type, draft_name, page, document_mark, text, create_by, create_time, update_by, update_time, status, apprvoal, belong_role, box_mark,expire_date, remove, borrow_status from archives_collect_box | |
| 51 | 51 | </sql> |
| 52 | 52 | |
| 53 | 53 | <select id="selectArchivesCollectBoxList" parameterType="ArchivesCollectBox" resultMap="ArchivesCollectBoxResult"> | ... | ... |
ruoyi-ui/src/views/archives/box/filingindex.vue
| ... | ... | @@ -341,6 +341,10 @@ export default { |
| 341 | 341 | handleSelectId(id,apprvoal){ |
| 342 | 342 | getBox(id).then(response => { |
| 343 | 343 | let from = response.data; |
| 344 | + if (from.deportNodeId != null){ | |
| 345 | + this.$modal.msgError("盒已上架,无法打回"); | |
| 346 | + return | |
| 347 | + } | |
| 344 | 348 | from.apprvoal = apprvoal; |
| 345 | 349 | updateBox(from).then(response => { |
| 346 | 350 | this.$modal.msgSuccess("提交成功"); | ... | ... |
ruoyi-ui/src/views/archives/collerctbox/filingindex.vue
| ... | ... | @@ -148,8 +148,6 @@ |
| 148 | 148 | <el-table-column label="页次" align="center" prop="page" /> |
| 149 | 149 | <el-table-column label="文号" align="center" prop="documentMark" /> |
| 150 | 150 | <el-table-column label="原文" align="center" prop="text" /> |
| 151 | - <el-table-column label="1.待整理 2.待审批" align="center" prop="apprvoal" /> | |
| 152 | - <el-table-column label="该文本属于哪个角色" align="center" prop="belongRole" /> | |
| 153 | 151 | <el-table-column label="盒号" align="center" prop="boxMark" /> |
| 154 | 152 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="titleshow"> |
| 155 | 153 | <template slot-scope="scope"> |
| ... | ... | @@ -448,6 +446,7 @@ export default { |
| 448 | 446 | this.queryParams.apprvoal = this.approval; //归档 |
| 449 | 447 | this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 |
| 450 | 448 | this.queryParams.status = this.statusPd; |
| 449 | + this.queryParams.remove = 0; //未删除数据 | |
| 451 | 450 | listCollerBox(this.queryParams).then(response => { |
| 452 | 451 | this.boxList = response.rows; |
| 453 | 452 | this.total = response.total; | ... | ... |
ruoyi-ui/src/views/archives/collerctbox/index.vue
| ... | ... | @@ -39,9 +39,6 @@ |
| 39 | 39 | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| 40 | 40 | </el-form-item> |
| 41 | 41 | </el-form> |
| 42 | - | |
| 43 | - | |
| 44 | - | |
| 45 | 42 | <el-row :gutter="10" class="mb8" v-if="titleshow"> |
| 46 | 43 | <el-col :span="1.5" v-if="approvalStatus"> |
| 47 | 44 | <el-select v-model="approval" @change="approvalpuRefresh"> |
| ... | ... | @@ -188,8 +185,6 @@ |
| 188 | 185 | <el-table-column label="页次" align="center" prop="page" /> |
| 189 | 186 | <el-table-column label="文号" align="center" prop="documentMark" /> |
| 190 | 187 | <el-table-column label="原文" align="center" prop="text" /> |
| 191 | - <el-table-column label="1.待整理 2.待审批" align="center" prop="apprvoal" /> | |
| 192 | - <el-table-column label="该文本属于哪个角色" align="center" prop="belongRole" /> | |
| 193 | 188 | <el-table-column label="盒号" align="center" prop="boxMark" /> |
| 194 | 189 | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="titleshow"> |
| 195 | 190 | <template slot-scope="scope"> |
| ... | ... | @@ -481,6 +476,7 @@ export default { |
| 481 | 476 | this.queryParams.deptId = this.deptId; //部门 |
| 482 | 477 | this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 |
| 483 | 478 | this.queryParams.status = this.statusPd; |
| 479 | + this.queryParams.remove = 0; //未删除数据 | |
| 484 | 480 | listCollerBox(this.queryParams).then(response => { |
| 485 | 481 | this.boxList = response.rows; |
| 486 | 482 | this.total = response.total; | ... | ... |
ruoyi-ui/src/views/archives/remove/index.vue
| 1 | 1 | <template> |
| 2 | + <div class="app-container"> | |
| 2 | 3 | |
| 4 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" v-if="titleshow"> | |
| 5 | + <el-form-item label="全宗号1" prop="general"> | |
| 6 | + <el-input | |
| 7 | + v-model="queryParams.general" | |
| 8 | + placeholder="请输入全宗号" | |
| 9 | + clearable | |
| 10 | + @keyup.enter.native="handleQuery" | |
| 11 | + /> | |
| 12 | + </el-form-item> | |
| 13 | + <el-form-item label="年度" prop="year"> | |
| 14 | + <el-input | |
| 15 | + v-model="queryParams.year" | |
| 16 | + placeholder="请输入年度" | |
| 17 | + clearable | |
| 18 | + @keyup.enter.native="handleQuery" | |
| 19 | + /> | |
| 20 | + </el-form-item> | |
| 21 | + <el-form-item label="题名" prop="title"> | |
| 22 | + <el-input | |
| 23 | + v-model="queryParams.title" | |
| 24 | + placeholder="请输入题名" | |
| 25 | + clearable | |
| 26 | + @keyup.enter.native="handleQuery" | |
| 27 | + /> | |
| 28 | + </el-form-item> | |
| 29 | + <el-form-item label="分类号" prop="sort"> | |
| 30 | + <el-input | |
| 31 | + v-model="queryParams.sort" | |
| 32 | + placeholder="请输入分类号" | |
| 33 | + clearable | |
| 34 | + @keyup.enter.native="handleQuery" | |
| 35 | + /> | |
| 36 | + </el-form-item> | |
| 37 | + <el-form-item> | |
| 38 | + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |
| 39 | + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |
| 40 | + </el-form-item> | |
| 41 | + </el-form> | |
| 42 | + <el-row :gutter="10" class="mb8"> | |
| 43 | + <el-col :span="1.5" v-if=""> | |
| 44 | + <el-button | |
| 45 | + type="warning" | |
| 46 | + plain | |
| 47 | + icon="el-icon-download" | |
| 48 | + size="mini" | |
| 49 | + @click="handleDelete" | |
| 50 | + v-hasPermi="['archives:collerctbox:commmit']" | |
| 51 | + >还原</el-button> | |
| 52 | + </el-col> | |
| 53 | + | |
| 54 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 55 | + </el-row> | |
| 56 | + | |
| 57 | + <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> | |
| 58 | + <el-table-column type="selection" width="55" align="center" /> | |
| 59 | + <el-table-column label="操作" align="center" prop="year" > | |
| 60 | + <template slot-scope="scope"> | |
| 61 | + <el-button | |
| 62 | + size="mini" | |
| 63 | + type="text" | |
| 64 | + icon="el-icon-edit" | |
| 65 | + @click="handleCheck(scope.row)" | |
| 66 | + v-hasPermi="['archives:box:check']" | |
| 67 | + >查看</el-button> | |
| 68 | + </template> | |
| 69 | + </el-table-column> | |
| 70 | + <el-table-column label="全宗号" align="center" prop="general" /> | |
| 71 | + <el-table-column label="年度" align="center" prop="year" /> | |
| 72 | + <el-table-column label="题名" align="center" prop="title" /> | |
| 73 | + <el-table-column label="分类号" align="center" prop="sort" /> | |
| 74 | + <el-table-column label="保管期限" align="center" prop="safekeepingDate" width="180"> | |
| 75 | + <template slot-scope="scope"> | |
| 76 | + <span>{{ parseTime(scope.row.safekeepingDate, '{y}-{m}-{d}') }}</span> | |
| 77 | + </template> | |
| 78 | + </el-table-column> | |
| 79 | + <el-table-column label="密级" align="center" prop="secretLevel" /> | |
| 80 | + <el-table-column label="页数" align="center" prop="pages" /> | |
| 81 | + <el-table-column label="归档份数" align="center" prop="filingNumber" /> | |
| 82 | + <el-table-column label="在库份数" align="center" prop="zkNumber" /> | |
| 83 | + <el-table-column label="库位码" align="center" prop="locationCode" /> | |
| 84 | + <el-table-column label="归档部门" align="center" prop="filingDept" /> | |
| 85 | + <el-table-column label="档号" align="center" prop="archivalCode" /> | |
| 86 | + <el-table-column label="责任者" align="center" prop="responsibilityName" /> | |
| 87 | + <el-table-column label="序号" align="center" prop="serialMark" /> | |
| 88 | + <el-table-column label="件号" align="center" prop="pieceMark" /> | |
| 89 | + <el-table-column label="登记号" align="center" prop="registerMark" /> | |
| 90 | + <el-table-column label="参议人员" align="center" prop="counsellors" /> | |
| 91 | + <el-table-column label="归档人" align="center" prop="filingName" /> | |
| 92 | + <el-table-column label="纪要人" align="center" prop="summaryName" /> | |
| 93 | + <el-table-column label="文种" align="center" prop="recordType" /> | |
| 94 | + <el-table-column label="载体类型" align="center" prop="carrierType" /> | |
| 95 | + <el-table-column label="拟稿人" align="center" prop="draftName" /> | |
| 96 | + <el-table-column label="页次" align="center" prop="page" /> | |
| 97 | + <el-table-column label="文号" align="center" prop="documentMark" /> | |
| 98 | + <el-table-column label="原文" align="center" prop="text" /> | |
| 99 | + <el-table-column label="盒号" align="center" prop="boxMark" /> | |
| 100 | + <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="titleshow"> | |
| 101 | + <template slot-scope="scope"> | |
| 102 | + <el-button | |
| 103 | + size="mini" | |
| 104 | + type="text" | |
| 105 | + icon="el-icon-edit" | |
| 106 | + @click="handleUpdate(scope.row)" | |
| 107 | + v-hasPermi="['archives:collerctbox:edit']" | |
| 108 | + >修改</el-button> | |
| 109 | + <el-button | |
| 110 | + size="mini" | |
| 111 | + type="text" | |
| 112 | + icon="el-icon-delete" | |
| 113 | + @click="handleDelete(scope.row)" | |
| 114 | + v-hasPermi="['archives:collerctbox:remove']" | |
| 115 | + >删除</el-button> | |
| 116 | + </template> | |
| 117 | + </el-table-column> | |
| 118 | + </el-table> | |
| 119 | + | |
| 120 | + <pagination | |
| 121 | + v-show="total>0" | |
| 122 | + :total="total" | |
| 123 | + :page.sync="queryParams.pageNum" | |
| 124 | + :limit.sync="queryParams.pageSize" | |
| 125 | + @pagination="getList" | |
| 126 | + /> | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + </div> | |
| 3 | 131 | </template> |
| 4 | 132 | |
| 5 | 133 | <script> |
| 134 | +import { listCollerBox, getBox, delBox, addBox, updateBox,updatedelBox } from "@/api/archives/collerctbox"; | |
| 135 | +import { listBox } from "@/api/archives/box"; | |
| 136 | + | |
| 137 | +import file from "@/views/archives/file/index.vue"; | |
| 6 | 138 | export default { |
| 7 | - name: "index" | |
| 8 | -} | |
| 9 | -</script> | |
| 139 | + name: "collerctbox", | |
| 140 | + dicts: ['approval_type'], | |
| 141 | + components: { file }, | |
| 142 | + data() { | |
| 143 | + return { | |
| 144 | + // 遮罩层 | |
| 145 | + loading: true, | |
| 146 | + // 选中数组 | |
| 147 | + ids: [], | |
| 148 | + // 非单个禁用 | |
| 149 | + single: true, | |
| 150 | + // 非多个禁用 | |
| 151 | + multiple: true, | |
| 152 | + // 显示搜索条件 | |
| 153 | + showSearch: true, | |
| 154 | + // 总条数 | |
| 155 | + total: 0, | |
| 156 | + // 【登记著录】表格数据 | |
| 157 | + boxList: [], | |
| 158 | + boxtwoList: [], | |
| 159 | + // 弹出层标题 | |
| 160 | + title: "", | |
| 161 | + // 是否显示弹出层 | |
| 162 | + open: false, | |
| 163 | + // 查询参数 | |
| 164 | + queryParams: { | |
| 165 | + pageNum: 1, | |
| 166 | + pageSize: 10, | |
| 167 | + general: null, | |
| 168 | + year: null, | |
| 169 | + title: null, | |
| 170 | + sort: null, | |
| 171 | + safekeepingDate: null, | |
| 172 | + secretLevel: null, | |
| 173 | + pages: null, | |
| 174 | + filingNumber: null, | |
| 175 | + zkNumber: null, | |
| 176 | + locationCode: null, | |
| 177 | + filingDept: null, | |
| 178 | + archivalCode: null, | |
| 179 | + responsibilityName: null, | |
| 180 | + serialMark: null, | |
| 181 | + pieceMark: null, | |
| 182 | + registerMark: null, | |
| 183 | + counsellors: null, | |
| 184 | + filingName: null, | |
| 185 | + summaryName: null, | |
| 186 | + recordType: null, | |
| 187 | + carrierType: null, | |
| 188 | + draftName: null, | |
| 189 | + page: null, | |
| 190 | + documentMark: null, | |
| 191 | + text: null, | |
| 192 | + status: null, | |
| 193 | + apprvoal: null, | |
| 194 | + belongRole: null, | |
| 195 | + boxMark: null, | |
| 196 | + }, | |
| 197 | + // 表单参数 | |
| 198 | + form: {}, | |
| 199 | + // 表单校验 | |
| 200 | + rules: { | |
| 201 | + }, | |
| 202 | + remove : "1", //是否审批 //默认待整理 | |
| 203 | + | |
| 204 | + }; | |
| 205 | + }, | |
| 206 | + //statusPd 0未整理文件 1 已整理文件 2 盒 | |
| 207 | + created() { | |
| 208 | + this.getList(); | |
| 209 | + | |
| 210 | + }, | |
| 211 | + methods: { | |
| 212 | + /** 查询【登记著录】列表 */ | |
| 213 | + getList() { | |
| 214 | + this.queryParams.remove = this.remove; | |
| 215 | + listCollerBox(this.queryParams).then(response => { | |
| 216 | + this.boxList = response.rows; | |
| 217 | + this.total = response.total; | |
| 218 | + this.loading = false; | |
| 219 | + }); | |
| 220 | + }, | |
| 221 | + // 取消按钮 | |
| 222 | + cancel() { | |
| 223 | + this.boxOpen = false; | |
| 224 | + this.open = false; | |
| 225 | + this.reset(); | |
| 226 | + }, | |
| 10 | 227 | |
| 11 | -<style scoped> | |
| 228 | + /** 搜索按钮操作 */ | |
| 229 | + handleQuery() { | |
| 230 | + this.queryParams.pageNum = 1; | |
| 231 | + this.getList(); | |
| 232 | + }, | |
| 233 | + /** 重置按钮操作 */ | |
| 234 | + resetQuery() { | |
| 235 | + this.resetForm("queryForm"); | |
| 236 | + this.handleQuery(); | |
| 237 | + }, | |
| 238 | + // 多选框选中数据 | |
| 239 | + handleSelectionChange(selection) { | |
| 240 | + this.ids = selection.map(item => item.id) | |
| 241 | + this.single = selection.length!==1 | |
| 242 | + this.multiple = !selection.length | |
| 243 | + }, | |
| 12 | 244 | |
| 13 | -</style> | |
| 245 | + /** 删除按钮操作 */ | |
| 246 | + handleDelete(row) { | |
| 247 | + const ids = row.id || this.ids; | |
| 248 | + let remove = 0; | |
| 249 | + this.$modal.confirm('是否确认还原【登记著录】编号为"' + ids + '"的数据项?').then(function() { | |
| 250 | + return updatedelBox(ids,remove); | |
| 251 | + }).then(() => { | |
| 252 | + this.getList(); | |
| 253 | + this.$modal.msgSuccess("还原成功"); | |
| 254 | + }).catch(() => {}); | |
| 255 | + }, | |
| 256 | + | |
| 257 | + | |
| 258 | + } | |
| 259 | +}; | |
| 260 | +</script> | ... | ... |
ruoyi-ui/src/views/borrow/index.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="app-container"> |
| 3 | - | |
| 4 | - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" > | |
| 3 | + <el-row :gutter="20"> | |
| 4 | + <!--部门数据--> | |
| 5 | + <el-col :span="4" :xs="24"> | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + <div class="head-container"> | |
| 10 | + <el-input | |
| 11 | + v-model="deptName" | |
| 12 | + placeholder="请输入部门名称" | |
| 13 | + clearable | |
| 14 | + size="small" | |
| 15 | + prefix-icon="el-icon-search" | |
| 16 | + style="margin-bottom: 20px" | |
| 17 | + /> | |
| 18 | + </div> | |
| 19 | + <div class="head-container"> | |
| 20 | + <el-tree | |
| 21 | + :data="deptOptions" | |
| 22 | + :expand-on-click-node="false" | |
| 23 | + ref="tree" | |
| 24 | + default-expand-all | |
| 25 | + highlight-current | |
| 26 | + @node-click="handleNodeClick" | |
| 27 | + /> | |
| 28 | + </div> | |
| 29 | + </el-col> | |
| 30 | + <el-col :span="20" :xs="24"> | |
| 31 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" > | |
| 5 | 32 | <el-form-item label="全宗号1" prop="general"> |
| 6 | 33 | <el-input |
| 7 | 34 | v-model="queryParams.general" |
| ... | ... | @@ -42,73 +69,76 @@ |
| 42 | 69 | |
| 43 | 70 | |
| 44 | 71 | |
| 45 | - <el-row :gutter="10" class="mb8"> | |
| 46 | - <el-col :span="1.5" > | |
| 47 | - <el-button | |
| 48 | - type="warning" | |
| 49 | - plain | |
| 50 | - icon="el-icon-download" | |
| 51 | - size="mini" | |
| 52 | - :disabled="single" | |
| 53 | - @click="handleupdateborrow" | |
| 54 | - v-hasPermi="['archives:collerctbox:inserBox']" | |
| 55 | - >借阅</el-button> | |
| 56 | - </el-col> | |
| 57 | - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 58 | - </el-row> | |
| 72 | + <el-row :gutter="10" class="mb8"> | |
| 73 | + <el-col :span="1.5" > | |
| 74 | + <el-button | |
| 75 | + type="warning" | |
| 76 | + plain | |
| 77 | + icon="el-icon-download" | |
| 78 | + size="mini" | |
| 79 | + :disabled="single" | |
| 80 | + @click="handleupdateborrow" | |
| 81 | + v-hasPermi="['archives:collerctbox:inserBox']" | |
| 82 | + >借阅</el-button> | |
| 83 | + </el-col> | |
| 84 | + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> | |
| 85 | + </el-row> | |
| 59 | 86 | |
| 60 | - <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> | |
| 61 | - <el-table-column type="selection" width="55" align="center" /> | |
| 62 | - <el-table-column label="操作" align="center" prop="year" > | |
| 63 | - <template slot-scope="scope"> | |
| 64 | - <el-button | |
| 65 | - size="mini" | |
| 66 | - type="text" | |
| 67 | - icon="el-icon-edit" | |
| 68 | - @click="handleCheck(scope.row)" | |
| 69 | - v-hasPermi="['archives:box:check']" | |
| 70 | - >查看</el-button> | |
| 71 | - </template> | |
| 72 | - </el-table-column> | |
| 73 | - <el-table-column label="全宗号" align="center" prop="general" /> | |
| 74 | - <el-table-column label="年度" align="center" prop="year" /> | |
| 75 | - <el-table-column label="题名" align="center" prop="title" /> | |
| 76 | - <el-table-column label="分类号" align="center" prop="sort" /> | |
| 77 | - <el-table-column label="保管期限" align="center" prop="safekeepingDate" width="180"> | |
| 78 | - <template slot-scope="scope"> | |
| 79 | - <span>{{ parseTime(scope.row.safekeepingDate, '{y}-{m}-{d}') }}</span> | |
| 80 | - </template> | |
| 81 | - </el-table-column> | |
| 82 | - <el-table-column label="密级" align="center" prop="secretLevel" /> | |
| 83 | - <el-table-column label="页数" align="center" prop="pages" /> | |
| 84 | - <el-table-column label="归档份数" align="center" prop="filingNumber" /> | |
| 85 | - <el-table-column label="在库份数" align="center" prop="zkNumber" /> | |
| 86 | - <el-table-column label="库位码" align="center" prop="locationCode" /> | |
| 87 | - <el-table-column label="归档部门" align="center" prop="filingDept" /> | |
| 88 | - <el-table-column label="档号" align="center" prop="archivalCode" /> | |
| 89 | - <el-table-column label="责任者" align="center" prop="responsibilityName" /> | |
| 90 | - <el-table-column label="序号" align="center" prop="serialMark" /> | |
| 91 | - <el-table-column label="件号" align="center" prop="pieceMark" /> | |
| 92 | - <el-table-column label="登记号" align="center" prop="registerMark" /> | |
| 93 | - <el-table-column label="参议人员" align="center" prop="counsellors" /> | |
| 94 | - <el-table-column label="归档人" align="center" prop="filingName" /> | |
| 95 | - <el-table-column label="纪要人" align="center" prop="summaryName" /> | |
| 96 | - <el-table-column label="文种" align="center" prop="recordType" /> | |
| 97 | - <el-table-column label="载体类型" align="center" prop="carrierType" /> | |
| 98 | - <el-table-column label="拟稿人" align="center" prop="draftName" /> | |
| 99 | - <el-table-column label="页次" align="center" prop="page" /> | |
| 100 | - <el-table-column label="文号" align="center" prop="documentMark" /> | |
| 101 | - <el-table-column label="原文" align="center" prop="text" /> | |
| 102 | - <el-table-column label="盒号" align="center" prop="boxMark" /> | |
| 103 | - </el-table> | |
| 87 | + <el-table v-loading="loading" :data="boxList" @selection-change="handleSelectionChange"> | |
| 88 | + <el-table-column type="selection" width="55" align="center" /> | |
| 89 | + <el-table-column label="操作" align="center" prop="year" > | |
| 90 | + <template slot-scope="scope"> | |
| 91 | + <el-button | |
| 92 | + size="mini" | |
| 93 | + type="text" | |
| 94 | + icon="el-icon-edit" | |
| 95 | + @click="handleCheck(scope.row)" | |
| 96 | + v-hasPermi="['archives:box:check']" | |
| 97 | + >查看</el-button> | |
| 98 | + </template> | |
| 99 | + </el-table-column> | |
| 100 | + <el-table-column label="全宗号" align="center" prop="general" /> | |
| 101 | + <el-table-column label="年度" align="center" prop="year" /> | |
| 102 | + <el-table-column label="题名" align="center" prop="title" /> | |
| 103 | + <el-table-column label="分类号" align="center" prop="sort" /> | |
| 104 | + <el-table-column label="保管期限" align="center" prop="safekeepingDate" width="180"> | |
| 105 | + <template slot-scope="scope"> | |
| 106 | + <span>{{ parseTime(scope.row.safekeepingDate, '{y}-{m}-{d}') }}</span> | |
| 107 | + </template> | |
| 108 | + </el-table-column> | |
| 109 | + <el-table-column label="密级" align="center" prop="secretLevel" /> | |
| 110 | + <el-table-column label="页数" align="center" prop="pages" /> | |
| 111 | + <el-table-column label="归档份数" align="center" prop="filingNumber" /> | |
| 112 | + <el-table-column label="在库份数" align="center" prop="zkNumber" /> | |
| 113 | + <el-table-column label="库位码" align="center" prop="locationCode" /> | |
| 114 | + <el-table-column label="归档部门" align="center" prop="filingDept" /> | |
| 115 | + <el-table-column label="档号" align="center" prop="archivalCode" /> | |
| 116 | + <el-table-column label="责任者" align="center" prop="responsibilityName" /> | |
| 117 | + <el-table-column label="序号" align="center" prop="serialMark" /> | |
| 118 | + <el-table-column label="件号" align="center" prop="pieceMark" /> | |
| 119 | + <el-table-column label="登记号" align="center" prop="registerMark" /> | |
| 120 | + <el-table-column label="参议人员" align="center" prop="counsellors" /> | |
| 121 | + <el-table-column label="归档人" align="center" prop="filingName" /> | |
| 122 | + <el-table-column label="纪要人" align="center" prop="summaryName" /> | |
| 123 | + <el-table-column label="文种" align="center" prop="recordType" /> | |
| 124 | + <el-table-column label="载体类型" align="center" prop="carrierType" /> | |
| 125 | + <el-table-column label="拟稿人" align="center" prop="draftName" /> | |
| 126 | + <el-table-column label="页次" align="center" prop="page" /> | |
| 127 | + <el-table-column label="文号" align="center" prop="documentMark" /> | |
| 128 | + <el-table-column label="原文" align="center" prop="text" /> | |
| 129 | + <el-table-column label="盒号" align="center" prop="boxMark" /> | |
| 130 | + </el-table> | |
| 131 | + | |
| 132 | + <pagination | |
| 133 | + v-show="total>0" | |
| 134 | + :total="total" | |
| 135 | + :page.sync="queryParams.pageNum" | |
| 136 | + :limit.sync="queryParams.pageSize" | |
| 137 | + @pagination="getList" | |
| 138 | + /> | |
| 104 | 139 | |
| 105 | - <pagination | |
| 106 | - v-show="total>0" | |
| 107 | - :total="total" | |
| 108 | - :page.sync="queryParams.pageNum" | |
| 109 | - :limit.sync="queryParams.pageSize" | |
| 110 | - @pagination="getList" | |
| 111 | - /> | |
| 140 | + </el-col> | |
| 141 | + </el-row> | |
| 112 | 142 | |
| 113 | 143 | |
| 114 | 144 | <el-dialog :title="title" :visible.sync="open" width="40%" append-to-body> |
| ... | ... | @@ -160,8 +190,8 @@ |
| 160 | 190 | |
| 161 | 191 | <el-row> |
| 162 | 192 | <el-col :span="12"> |
| 163 | - <el-form-item label="档案门类" prop="borrowName1"> | |
| 164 | - <el-input v-model="form.borrowName1" placeholder="请输入借阅登记人" /> | |
| 193 | + <el-form-item label="档案门类" prop="boxType"> | |
| 194 | + <el-input v-model="form.boxType" placeholder="请输入借阅登记人" /> | |
| 165 | 195 | </el-form-item> |
| 166 | 196 | |
| 167 | 197 | </el-col> |
| ... | ... | @@ -174,7 +204,7 @@ |
| 174 | 204 | |
| 175 | 205 | <el-row> |
| 176 | 206 | |
| 177 | - <el-form-item label="借阅目的" prop="borrowName"> | |
| 207 | + <el-form-item label="借阅目的" prop="borrowType"> | |
| 178 | 208 | <el-select v-model="form.borrowType" placeholder="请选择借阅目的"> |
| 179 | 209 | <el-option |
| 180 | 210 | v-for="dict in dict.type.borrow_type" |
| ... | ... | @@ -202,7 +232,6 @@ |
| 202 | 232 | <td> <span>{{ CollertBox2 }}</span> </td> |
| 203 | 233 | </tr> |
| 204 | 234 | <tr> |
| 205 | - | |
| 206 | 235 | </tr> |
| 207 | 236 | </table> |
| 208 | 237 | </el-form-item> |
| ... | ... | @@ -219,8 +248,8 @@ |
| 219 | 248 | <script> |
| 220 | 249 | import { listCollerBox, getBox, delBox, addBox, updateBox,updatedelBox } from "@/api/archives/collerctbox"; |
| 221 | 250 | import { addBorrow } from "@/api/archives/borrow.js"; |
| 222 | - | |
| 223 | 251 | import file from "@/views/archives/file"; |
| 252 | + import {treeselect} from "@/api/archives/dept"; | |
| 224 | 253 | export default { |
| 225 | 254 | dicts: ['borrow_type'], |
| 226 | 255 | components: { file }, |
| ... | ... | @@ -232,9 +261,17 @@ |
| 232 | 261 | type: Number, |
| 233 | 262 | } |
| 234 | 263 | }, |
| 264 | + watch: { | |
| 265 | + // 根据名称筛选部门树 | |
| 266 | + deptName(val) { | |
| 267 | + this.$refs.tree.filter(val); | |
| 268 | + }, | |
| 269 | + }, | |
| 235 | 270 | |
| 236 | 271 | data() { |
| 237 | 272 | return { |
| 273 | + // 部门树选项 | |
| 274 | + deptOptions: undefined, | |
| 238 | 275 | // 遮罩层 |
| 239 | 276 | loading: true, |
| 240 | 277 | // 选中数组 |
| ... | ... | @@ -295,17 +332,26 @@ |
| 295 | 332 | }, |
| 296 | 333 | borrowStatus: 1,//可借阅 |
| 297 | 334 | collectBoxId: null, |
| 298 | - CollertBox1: 111, | |
| 335 | + CollertBox1: null, | |
| 299 | 336 | CollertBox2: null, |
| 300 | 337 | }; |
| 301 | 338 | }, |
| 302 | 339 | //statusPd 0未整理文件 1 已整理文件 2 盒 |
| 303 | 340 | created() { |
| 304 | 341 | this.getList(); |
| 342 | + this.getTreeselect(); | |
| 305 | 343 | }, |
| 306 | 344 | methods: { |
| 345 | + /** 查询部门下拉树结构 */ | |
| 346 | + getTreeselect() { | |
| 347 | + treeselect().then(response => { | |
| 348 | + this.deptOptions = response.data; | |
| 349 | + }); | |
| 350 | + }, | |
| 307 | 351 | /** 查询【登记著录】列表 */ |
| 308 | 352 | getList() { |
| 353 | + | |
| 354 | + this.queryParams.deptId = this.deptId != null ? this.deptId : "000"//是否盒内文件 | |
| 309 | 355 | this.queryParams.borrowStatus = this.borrowStatus; |
| 310 | 356 | this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 |
| 311 | 357 | listCollerBox(this.queryParams).then(response => { |
| ... | ... | @@ -339,6 +385,8 @@ |
| 339 | 385 | returnDate: null, |
| 340 | 386 | returnedDate: null, |
| 341 | 387 | borrowMark: null, |
| 388 | + deptId : null, | |
| 389 | + deptName: null, | |
| 342 | 390 | }; |
| 343 | 391 | this.resetForm("form"); |
| 344 | 392 | }, |
| ... | ... | @@ -359,8 +407,14 @@ |
| 359 | 407 | this.multiple = !selection.length |
| 360 | 408 | }, |
| 361 | 409 | |
| 410 | + // 节点单击事件 | |
| 411 | + handleNodeClick(data) { | |
| 412 | + this.deptId = data.id; | |
| 413 | + this.deptName = data.label; | |
| 414 | + this.getList(); | |
| 415 | + }, | |
| 362 | 416 | |
| 363 | - | |
| 417 | + //借阅按钮 | |
| 364 | 418 | handleupdateborrow(row){ |
| 365 | 419 | this.open = true; |
| 366 | 420 | const id = row.id || this.ids |
| ... | ... | @@ -370,10 +424,9 @@ |
| 370 | 424 | this.CollertBox2 = response.data.title; |
| 371 | 425 | }); |
| 372 | 426 | this.form.name = this.$store.state.user.name; |
| 373 | - this.form.dept = this.$store.state.user.deptName(); | |
| 427 | + this.form.boxType = this.deptName; | |
| 374 | 428 | }, |
| 375 | - | |
| 376 | - | |
| 429 | + //借阅 | |
| 377 | 430 | submitForm(){ |
| 378 | 431 | this.$refs["form"].validate(valid => { |
| 379 | 432 | if (valid) { |
| ... | ... | @@ -385,9 +438,7 @@ |
| 385 | 438 | } |
| 386 | 439 | }); |
| 387 | 440 | }, |
| 388 | - | |
| 389 | - | |
| 390 | - | |
| 441 | + ////可借阅 转为可归还 | |
| 391 | 442 | handleSelectId(id,borrowStatus){ |
| 392 | 443 | debugger |
| 393 | 444 | getBox(id).then(response => { | ... | ... |