Commit f23b2b66cbf09c8bd6c25d10bcddcaa2217d6a7c
1 parent
c42e8030
档案合并
Showing
6 changed files
with
148 additions
and
46 deletions
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesController.java
ruoyi-ui/src/views/archives/box/index.vue
| ... | ... | @@ -82,6 +82,30 @@ |
| 82 | 82 | v-hasPermi="['archives:box:export']" |
| 83 | 83 | >导出</el-button> |
| 84 | 84 | </el-col> |
| 85 | + <el-col :span="1.5" v-if="updateyfiling"> | |
| 86 | + <el-button | |
| 87 | + type="warning" | |
| 88 | + plain | |
| 89 | + icon="el-icon-download" | |
| 90 | + size="mini" | |
| 91 | + :disabled="single" | |
| 92 | + @click="handleupdateyfiling" | |
| 93 | + v-hasPermi="['archives:collerctbox:inserBox']" | |
| 94 | + >预归档</el-button> | |
| 95 | + </el-col> | |
| 96 | + | |
| 97 | + <el-col :span="1.5" v-if="updatefiling"> | |
| 98 | + <el-button | |
| 99 | + type="warning" | |
| 100 | + plain | |
| 101 | + icon="el-icon-download" | |
| 102 | + size="mini" | |
| 103 | + :disabled="single" | |
| 104 | + @click="handleupdatefiling" | |
| 105 | + v-hasPermi="['archives:collerctbox:inserBox']" | |
| 106 | + >归档</el-button> | |
| 107 | + </el-col> | |
| 108 | + | |
| 85 | 109 | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| 86 | 110 | </el-row> |
| 87 | 111 | |
| ... | ... | @@ -132,7 +156,7 @@ |
| 132 | 156 | @pagination="getList" |
| 133 | 157 | /> |
| 134 | 158 | |
| 135 | - <!-- 添加或修改【请填写功能名称】对话框 --> | |
| 159 | + <!-- 添加或修改【著录盒】对话框 --> | |
| 136 | 160 | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| 137 | 161 | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| 138 | 162 | <el-form-item label="年度" prop="year"> |
| ... | ... | @@ -188,7 +212,7 @@ export default { |
| 188 | 212 | showSearch: true, |
| 189 | 213 | // 总条数 |
| 190 | 214 | total: 0, |
| 191 | - // 【请填写功能名称】表格数据 | |
| 215 | + // 【著录盒】表格数据 | |
| 192 | 216 | boxList: [], |
| 193 | 217 | // 弹出层标题 |
| 194 | 218 | title: "", |
| ... | ... | @@ -210,14 +234,16 @@ export default { |
| 210 | 234 | rules: { |
| 211 | 235 | }, |
| 212 | 236 | boxtOpen : false, |
| 213 | - boxsId : null, | |
| 237 | + boxsId : null, //盒id | |
| 238 | + updateyfiling :true, //预归档 | |
| 239 | + updatefiling: true,//归档 | |
| 214 | 240 | }; |
| 215 | 241 | }, |
| 216 | 242 | created() { |
| 217 | 243 | this.getList(); |
| 218 | 244 | }, |
| 219 | 245 | methods: { |
| 220 | - /** 查询【请填写功能名称】列表 */ | |
| 246 | + /** 查询【著录盒】列表 */ | |
| 221 | 247 | getList() { |
| 222 | 248 | this.loading = true; |
| 223 | 249 | listBox(this.queryParams).then(response => { |
| ... | ... | @@ -267,7 +293,7 @@ export default { |
| 267 | 293 | handleAdd() { |
| 268 | 294 | this.reset(); |
| 269 | 295 | this.open = true; |
| 270 | - this.title = "添加【请填写功能名称】"; | |
| 296 | + this.title = "添加【著录盒】"; | |
| 271 | 297 | }, |
| 272 | 298 | /** 修改按钮操作 */ |
| 273 | 299 | handleUpdate(row) { |
| ... | ... | @@ -276,7 +302,7 @@ export default { |
| 276 | 302 | getBox(id).then(response => { |
| 277 | 303 | this.form = response.data; |
| 278 | 304 | this.open = true; |
| 279 | - this.title = "修改【请填写功能名称】"; | |
| 305 | + this.title = "修改【著录盒】"; | |
| 280 | 306 | }); |
| 281 | 307 | }, |
| 282 | 308 | /** 提交按钮 */ |
| ... | ... | @@ -302,7 +328,7 @@ export default { |
| 302 | 328 | /** 删除按钮操作 */ |
| 303 | 329 | handleDelete(row) { |
| 304 | 330 | const ids = row.id || this.ids; |
| 305 | - this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { | |
| 331 | + this.$modal.confirm('是否确认删除【著录盒】编号为"' + ids + '"的数据项?').then(function() { | |
| 306 | 332 | return delBox(ids); |
| 307 | 333 | }).then(() => { |
| 308 | 334 | this.getList(); |
| ... | ... | @@ -315,11 +341,20 @@ export default { |
| 315 | 341 | ...this.queryParams |
| 316 | 342 | }, `box_${new Date().getTime()}.xlsx`) |
| 317 | 343 | }, |
| 318 | - | |
| 344 | + /* 查看 */ | |
| 319 | 345 | handleCheck(row){ |
| 320 | 346 | this.boxsId = row.id; |
| 321 | 347 | this.boxtOpen = true; |
| 322 | 348 | }, |
| 349 | + /** 预归档 **/ | |
| 350 | + handleupdateyfiling(row){ | |
| 351 | + | |
| 352 | + }, | |
| 353 | + | |
| 354 | + /** 归档 **/ | |
| 355 | + handleupdatefiling(row){ | |
| 356 | + | |
| 357 | + } | |
| 323 | 358 | |
| 324 | 359 | } |
| 325 | 360 | }; | ... | ... |
ruoyi-ui/src/views/archives/collerctbox/index.vue
| ... | ... | @@ -43,10 +43,8 @@ |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | <el-row :gutter="10" class="mb8" v-if="titleshow"> |
| 46 | - | |
| 47 | - | |
| 48 | - <el-col :span="1.5"> | |
| 49 | - <el-select v-model="approval"> | |
| 46 | + <el-col :span="1.5" v-if="approvalStatus"> | |
| 47 | + <el-select v-model="approval" @change="approvalpuRefresh"> | |
| 50 | 48 | <el-option |
| 51 | 49 | v-for="dict in dict.type.approval_type" |
| 52 | 50 | :key="dict.value" |
| ... | ... | @@ -106,7 +104,7 @@ |
| 106 | 104 | size="mini" |
| 107 | 105 | @click="handleCommit" |
| 108 | 106 | v-hasPermi="['archives:collerctbox:commmit']" |
| 109 | - >提交</el-button> | |
| 107 | + >编号</el-button> | |
| 110 | 108 | </el-col> |
| 111 | 109 | |
| 112 | 110 | <el-col :span="1.5" v-if="inserBox"> |
| ... | ... | @@ -120,6 +118,31 @@ |
| 120 | 118 | v-hasPermi="['archives:collerctbox:inserBox']" |
| 121 | 119 | >加入盒</el-button> |
| 122 | 120 | </el-col> |
| 121 | + | |
| 122 | + <el-col :span="1.5" v-if="updateyfiling"> | |
| 123 | + <el-button | |
| 124 | + type="warning" | |
| 125 | + plain | |
| 126 | + icon="el-icon-download" | |
| 127 | + size="mini" | |
| 128 | + :disabled="single" | |
| 129 | + @click="handleupdateyfiling" | |
| 130 | + v-hasPermi="['archives:collerctbox:inserBox']" | |
| 131 | + >预归档</el-button> | |
| 132 | + </el-col> | |
| 133 | + | |
| 134 | + <el-col :span="1.5" v-if="updatefiling"> | |
| 135 | + <el-button | |
| 136 | + type="warning" | |
| 137 | + plain | |
| 138 | + icon="el-icon-download" | |
| 139 | + size="mini" | |
| 140 | + :disabled="single" | |
| 141 | + @click="handleupdatefiling" | |
| 142 | + v-hasPermi="['archives:collerctbox:inserBox']" | |
| 143 | + >归档</el-button> | |
| 144 | + </el-col> | |
| 145 | + | |
| 123 | 146 | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| 124 | 147 | </el-row> |
| 125 | 148 | |
| ... | ... | @@ -196,7 +219,7 @@ |
| 196 | 219 | @pagination="getList" |
| 197 | 220 | /> |
| 198 | 221 | |
| 199 | - <!-- 添加或修改【请填写功能名称】对话框 --> | |
| 222 | + <!-- 添加或修改【登记著录】对话框 --> | |
| 200 | 223 | <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body> |
| 201 | 224 | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| 202 | 225 | <el-row> |
| ... | ... | @@ -388,7 +411,7 @@ export default { |
| 388 | 411 | showSearch: true, |
| 389 | 412 | // 总条数 |
| 390 | 413 | total: 0, |
| 391 | - // 【请填写功能名称】表格数据 | |
| 414 | + // 【登记著录】表格数据 | |
| 392 | 415 | boxList: [], |
| 393 | 416 | boxtwoList: [], |
| 394 | 417 | // 弹出层标题 |
| ... | ... | @@ -439,10 +462,13 @@ export default { |
| 439 | 462 | titleshow : true,//2.盒 不显示查询条件 |
| 440 | 463 | fileOpen : false, |
| 441 | 464 | collboxId: null,//本次Id |
| 442 | - lecommit: false, | |
| 465 | + lecommit: false, //提交按钮 | |
| 443 | 466 | inserBox: false,//加入盒按钮 |
| 444 | - boxOpen:false, | |
| 445 | - collerboxid : null, | |
| 467 | + boxOpen:false, //盒遮罩层 | |
| 468 | + collerboxid : null, //盒id | |
| 469 | + updateyfiling :false, //预归档 | |
| 470 | + updatefiling: false,//归档 | |
| 471 | + approvalStatus: false, //待整理 待审核 | |
| 446 | 472 | }; |
| 447 | 473 | }, |
| 448 | 474 | //statusPd 0未整理文件 1 已整理文件 2 盒 |
| ... | ... | @@ -450,14 +476,24 @@ export default { |
| 450 | 476 | debugger |
| 451 | 477 | this.getList(); |
| 452 | 478 | this.titleshow =this.statusPd == 2 ? false : true; //提交 |
| 453 | - this.lecommit = this.statusPd != "0" ? false :true; | |
| 454 | - this.inserBox = this.statusPd == 1 ? true : false; //加入盒 | |
| 479 | + if (this.statusPd == 0){ //未整理 | |
| 480 | + this.lecommit = true; | |
| 481 | + this.approvalStatus = true; | |
| 482 | + } | |
| 483 | + | |
| 484 | + if (this.statusPd == 1){ //已整理 | |
| 485 | + this.inserBox = true; //加入盒 | |
| 486 | + this.updateyfiling = true; //预归档 | |
| 487 | + this.updatefiling = true; //归档 | |
| 488 | + } | |
| 455 | 489 | }, |
| 456 | 490 | methods: { |
| 457 | - /** 查询【请填写功能名称】列表 */ | |
| 491 | + /** 查询【登记著录】列表 */ | |
| 458 | 492 | getList() { |
| 459 | - debugger | |
| 460 | 493 | this.loading = true; |
| 494 | + if (this.statusPd == "0"){ //待整理 待审核 | |
| 495 | + this.queryParams.apprvoal = this.approval; | |
| 496 | + } | |
| 461 | 497 | this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 |
| 462 | 498 | this.queryParams.status = this.statusPd; |
| 463 | 499 | listCollerBox(this.queryParams).then(response => { |
| ... | ... | @@ -555,6 +591,7 @@ export default { |
| 555 | 591 | this.getList(); |
| 556 | 592 | }); |
| 557 | 593 | } else { |
| 594 | + this.form.approval = "0" //初始创建所有都是0.待整理 | |
| 558 | 595 | addBox(this.form).then(response => { |
| 559 | 596 | this.$modal.msgSuccess("新增成功"); |
| 560 | 597 | this.open = false; |
| ... | ... | @@ -567,7 +604,7 @@ export default { |
| 567 | 604 | /** 删除按钮操作 */ |
| 568 | 605 | handleDelete(row) { |
| 569 | 606 | const ids = row.id || this.ids; |
| 570 | - this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { | |
| 607 | + this.$modal.confirm('是否确认删除【登记著录】编号为"' + ids + '"的数据项?').then(function() { | |
| 571 | 608 | return delBox(ids); |
| 572 | 609 | }).then(() => { |
| 573 | 610 | this.getList(); |
| ... | ... | @@ -581,23 +618,22 @@ export default { |
| 581 | 618 | }, `box_${new Date().getTime()}.xlsx`) |
| 582 | 619 | }, |
| 583 | 620 | |
| 584 | - | |
| 621 | + /** 查看按钮 **/ | |
| 585 | 622 | handleCheck(row){ |
| 586 | 623 | this.fileOpen = true; |
| 587 | 624 | this.collboxId = row.id; |
| 588 | 625 | }, |
| 589 | 626 | |
| 590 | - /** 提交按钮操作 */ | |
| 627 | + /** 编号按钮操作 */ | |
| 591 | 628 | handleCommit(row){ |
| 592 | 629 | const id = row.id || this.ids |
| 593 | - getBox(id).then(response => { | |
| 594 | - let from = response.data; | |
| 595 | - from.status = "1"; | |
| 596 | - updateBox(from).then(response => { | |
| 597 | - this.$modal.msgSuccess("提交成功"); | |
| 598 | - this.open = false; | |
| 599 | - this.getList(); | |
| 600 | - }); | |
| 630 | + let from = this.handleSelectId(id) | |
| 631 | + from.status = "1"; //1.已整理文件 | |
| 632 | + from.apprvoal = "3"; //3.专职档案提交通过 | |
| 633 | + updateBox(from).then(response => { | |
| 634 | + this.$modal.msgSuccess("提交成功"); | |
| 635 | + this.open = false; | |
| 636 | + this.getList(); | |
| 601 | 637 | }); |
| 602 | 638 | }, |
| 603 | 639 | //打开加入盒页面 并保存id |
| ... | ... | @@ -618,17 +654,48 @@ export default { |
| 618 | 654 | return; |
| 619 | 655 | } |
| 620 | 656 | let collerboxid = this.collerboxid; |
| 621 | - getBox(collerboxid).then(response => { | |
| 622 | - let from = response.data; | |
| 623 | - from.boxId = id + ""; //盒id | |
| 624 | - from.status = "2"; | |
| 625 | - updateBox(from).then(response => { | |
| 626 | - this.$modal.msgSuccess("提交成功"); | |
| 627 | - this.boxOpen = false; | |
| 628 | - }); | |
| 657 | + let from = this.handleSelectId(id) | |
| 658 | + from.boxId = id + ""; //盒id | |
| 659 | + from.status = "2"; | |
| 660 | + updateBox(from).then(response => { | |
| 661 | + this.$modal.msgSuccess("提交成功"); | |
| 662 | + this.boxOpen = false; | |
| 663 | + }); | |
| 664 | + }, | |
| 665 | + /** 预归档 **/ | |
| 666 | + handleupdateyfiling(row){ | |
| 667 | + const id = row.id || this.ids | |
| 668 | + let from = this.handleSelectId(id) | |
| 669 | + from.apprvoal = "3"; | |
| 670 | + updateBox(from).then(response => { | |
| 671 | + this.$modal.msgSuccess("提交成功"); | |
| 672 | + this.open = false; | |
| 673 | + this.getList(); | |
| 674 | + }); | |
| 675 | + }, | |
| 676 | + | |
| 677 | + /** 归档 **/ | |
| 678 | + handleupdatefiling(row){ | |
| 679 | + const id = row.id || this.ids | |
| 680 | + let from = this.handleSelectId(id) | |
| 681 | + from.apprvoal = "4"; | |
| 682 | + updateBox(from).then(response => { | |
| 683 | + this.$modal.msgSuccess("提交成功"); | |
| 684 | + this.open = false; | |
| 685 | + this.getList(); | |
| 629 | 686 | }); |
| 630 | 687 | }, |
| 631 | 688 | |
| 689 | + | |
| 690 | + handleSelectId(id){ | |
| 691 | + getBox(id).then(response => { | |
| 692 | + return response.data; | |
| 693 | + }); | |
| 694 | + }, | |
| 695 | + | |
| 696 | + approvalpuRefresh(){ | |
| 697 | + this.getList(); | |
| 698 | + } | |
| 632 | 699 | } |
| 633 | 700 | }; |
| 634 | 701 | </script> | ... | ... |
ruoyi-ui/src/views/archives/file/index.vue
ruoyi-ui/src/views/archives/index.vue
| ... | ... | @@ -35,8 +35,8 @@ |
| 35 | 35 | |
| 36 | 36 | |
| 37 | 37 | <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo"> |
| 38 | - <el-tab-pane label="未整理文件" name="first" > <indexbox :statusPd=0 v-if="isFirst"/></el-tab-pane> | |
| 39 | - <el-tab-pane label="已整理文件" name="second" ><indexbox :statusPd="1" v-if="isSecond" /></el-tab-pane> | |
| 38 | + <el-tab-pane label="未整理文件" name="first" > <indexbox :statusPd= 0 v-if="isFirst"/></el-tab-pane> | |
| 39 | + <el-tab-pane label="已整理文件" name="second" ><indexbox :statusPd= 1 v-if="isSecond" /></el-tab-pane> | |
| 40 | 40 | <el-tab-pane label="盒" name="third" ><box v-if="isThird" /></el-tab-pane> |
| 41 | 41 | </el-tabs> |
| 42 | 42 | ... | ... |
ruoyi-ui/src/views/archives/preview/preview.vue
| ... | ... | @@ -32,7 +32,7 @@ export default { |
| 32 | 32 | if(this.fileurl != null && this.fileurl != undefined){ |
| 33 | 33 | |
| 34 | 34 | let url = "http://localhost"+ process.env.VUE_APP_BASE_API +this.fileurl; //要预览文件的访问地址 |
| 35 | - this.reportUrl = 'http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(bsbase64Encode.encode(url)); | |
| 35 | + this.reportUrl = 'http://192.168.168.140:8012/onlinePreview?url='+encodeURIComponent(bsbase64Encode.encode(url)); | |
| 36 | 36 | } |
| 37 | 37 | }, |
| 38 | 38 | methods: { | ... | ... |