Commit f23b2b66cbf09c8bd6c25d10bcddcaa2217d6a7c

Authored by ljq
1 parent c42e8030

档案合并

ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesController.java
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController; @@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RestController;
10 public class ArchivesController { 10 public class ArchivesController {
11 11
12 /** 12 /**
13 - * 查询【请填写功能名称】列表 13 + * 登记著录
14 */ 14 */
15 @PreAuthorize("@ss.hasPermi('archives:list')") 15 @PreAuthorize("@ss.hasPermi('archives:list')")
16 @RequestMapping("/index") 16 @RequestMapping("/index")
ruoyi-ui/src/views/archives/box/index.vue
@@ -82,6 +82,30 @@ @@ -82,6 +82,30 @@
82 v-hasPermi="['archives:box:export']" 82 v-hasPermi="['archives:box:export']"
83 >导出</el-button> 83 >导出</el-button>
84 </el-col> 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 <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> 109 <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
86 </el-row> 110 </el-row>
87 111
@@ -132,7 +156,7 @@ @@ -132,7 +156,7 @@
132 @pagination="getList" 156 @pagination="getList"
133 /> 157 />
134 158
135 - <!-- 添加或修改【请填写功能名称】对话框 --> 159 + <!-- 添加或修改【著录盒】对话框 -->
136 <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> 160 <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
137 <el-form ref="form" :model="form" :rules="rules" label-width="80px"> 161 <el-form ref="form" :model="form" :rules="rules" label-width="80px">
138 <el-form-item label="年度" prop="year"> 162 <el-form-item label="年度" prop="year">
@@ -188,7 +212,7 @@ export default { @@ -188,7 +212,7 @@ export default {
188 showSearch: true, 212 showSearch: true,
189 // 总条数 213 // 总条数
190 total: 0, 214 total: 0,
191 - // 【请填写功能名称】表格数据 215 + // 【著录盒】表格数据
192 boxList: [], 216 boxList: [],
193 // 弹出层标题 217 // 弹出层标题
194 title: "", 218 title: "",
@@ -210,14 +234,16 @@ export default { @@ -210,14 +234,16 @@ export default {
210 rules: { 234 rules: {
211 }, 235 },
212 boxtOpen : false, 236 boxtOpen : false,
213 - boxsId : null, 237 + boxsId : null, //盒id
  238 + updateyfiling :true, //预归档
  239 + updatefiling: true,//归档
214 }; 240 };
215 }, 241 },
216 created() { 242 created() {
217 this.getList(); 243 this.getList();
218 }, 244 },
219 methods: { 245 methods: {
220 - /** 查询【请填写功能名称】列表 */ 246 + /** 查询【著录盒】列表 */
221 getList() { 247 getList() {
222 this.loading = true; 248 this.loading = true;
223 listBox(this.queryParams).then(response => { 249 listBox(this.queryParams).then(response => {
@@ -267,7 +293,7 @@ export default { @@ -267,7 +293,7 @@ export default {
267 handleAdd() { 293 handleAdd() {
268 this.reset(); 294 this.reset();
269 this.open = true; 295 this.open = true;
270 - this.title = "添加【请填写功能名称】"; 296 + this.title = "添加【著录盒】";
271 }, 297 },
272 /** 修改按钮操作 */ 298 /** 修改按钮操作 */
273 handleUpdate(row) { 299 handleUpdate(row) {
@@ -276,7 +302,7 @@ export default { @@ -276,7 +302,7 @@ export default {
276 getBox(id).then(response => { 302 getBox(id).then(response => {
277 this.form = response.data; 303 this.form = response.data;
278 this.open = true; 304 this.open = true;
279 - this.title = "修改【请填写功能名称】"; 305 + this.title = "修改【著录盒】";
280 }); 306 });
281 }, 307 },
282 /** 提交按钮 */ 308 /** 提交按钮 */
@@ -302,7 +328,7 @@ export default { @@ -302,7 +328,7 @@ export default {
302 /** 删除按钮操作 */ 328 /** 删除按钮操作 */
303 handleDelete(row) { 329 handleDelete(row) {
304 const ids = row.id || this.ids; 330 const ids = row.id || this.ids;
305 - this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { 331 + this.$modal.confirm('是否确认删除【著录盒】编号为"' + ids + '"的数据项?').then(function() {
306 return delBox(ids); 332 return delBox(ids);
307 }).then(() => { 333 }).then(() => {
308 this.getList(); 334 this.getList();
@@ -315,11 +341,20 @@ export default { @@ -315,11 +341,20 @@ export default {
315 ...this.queryParams 341 ...this.queryParams
316 }, `box_${new Date().getTime()}.xlsx`) 342 }, `box_${new Date().getTime()}.xlsx`)
317 }, 343 },
318 - 344 + /* 查看 */
319 handleCheck(row){ 345 handleCheck(row){
320 this.boxsId = row.id; 346 this.boxsId = row.id;
321 this.boxtOpen = true; 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,10 +43,8 @@
43 43
44 44
45 <el-row :gutter="10" class="mb8" v-if="titleshow"> 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 <el-option 48 <el-option
51 v-for="dict in dict.type.approval_type" 49 v-for="dict in dict.type.approval_type"
52 :key="dict.value" 50 :key="dict.value"
@@ -106,7 +104,7 @@ @@ -106,7 +104,7 @@
106 size="mini" 104 size="mini"
107 @click="handleCommit" 105 @click="handleCommit"
108 v-hasPermi="['archives:collerctbox:commmit']" 106 v-hasPermi="['archives:collerctbox:commmit']"
109 - >提交</el-button> 107 + >编号</el-button>
110 </el-col> 108 </el-col>
111 109
112 <el-col :span="1.5" v-if="inserBox"> 110 <el-col :span="1.5" v-if="inserBox">
@@ -120,6 +118,31 @@ @@ -120,6 +118,31 @@
120 v-hasPermi="['archives:collerctbox:inserBox']" 118 v-hasPermi="['archives:collerctbox:inserBox']"
121 >加入盒</el-button> 119 >加入盒</el-button>
122 </el-col> 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 <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> 146 <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
124 </el-row> 147 </el-row>
125 148
@@ -196,7 +219,7 @@ @@ -196,7 +219,7 @@
196 @pagination="getList" 219 @pagination="getList"
197 /> 220 />
198 221
199 - <!-- 添加或修改【请填写功能名称】对话框 --> 222 + <!-- 添加或修改【登记著录】对话框 -->
200 <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body> 223 <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
201 <el-form ref="form" :model="form" :rules="rules" label-width="80px"> 224 <el-form ref="form" :model="form" :rules="rules" label-width="80px">
202 <el-row> 225 <el-row>
@@ -388,7 +411,7 @@ export default { @@ -388,7 +411,7 @@ export default {
388 showSearch: true, 411 showSearch: true,
389 // 总条数 412 // 总条数
390 total: 0, 413 total: 0,
391 - // 【请填写功能名称】表格数据 414 + // 【登记著录】表格数据
392 boxList: [], 415 boxList: [],
393 boxtwoList: [], 416 boxtwoList: [],
394 // 弹出层标题 417 // 弹出层标题
@@ -439,10 +462,13 @@ export default { @@ -439,10 +462,13 @@ export default {
439 titleshow : true,//2.盒 不显示查询条件 462 titleshow : true,//2.盒 不显示查询条件
440 fileOpen : false, 463 fileOpen : false,
441 collboxId: null,//本次Id 464 collboxId: null,//本次Id
442 - lecommit: false, 465 + lecommit: false, //提交按钮
443 inserBox: false,//加入盒按钮 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 //statusPd 0未整理文件 1 已整理文件 2 盒 474 //statusPd 0未整理文件 1 已整理文件 2 盒
@@ -450,14 +476,24 @@ export default { @@ -450,14 +476,24 @@ export default {
450 debugger 476 debugger
451 this.getList(); 477 this.getList();
452 this.titleshow =this.statusPd == 2 ? false : true; //提交 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 methods: { 490 methods: {
457 - /** 查询【请填写功能名称】列表 */ 491 + /** 查询【登记著录】列表 */
458 getList() { 492 getList() {
459 - debugger  
460 this.loading = true; 493 this.loading = true;
  494 + if (this.statusPd == "0"){ //待整理 待审核
  495 + this.queryParams.apprvoal = this.approval;
  496 + }
461 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 497 this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件
462 this.queryParams.status = this.statusPd; 498 this.queryParams.status = this.statusPd;
463 listCollerBox(this.queryParams).then(response => { 499 listCollerBox(this.queryParams).then(response => {
@@ -555,6 +591,7 @@ export default { @@ -555,6 +591,7 @@ export default {
555 this.getList(); 591 this.getList();
556 }); 592 });
557 } else { 593 } else {
  594 + this.form.approval = "0" //初始创建所有都是0.待整理
558 addBox(this.form).then(response => { 595 addBox(this.form).then(response => {
559 this.$modal.msgSuccess("新增成功"); 596 this.$modal.msgSuccess("新增成功");
560 this.open = false; 597 this.open = false;
@@ -567,7 +604,7 @@ export default { @@ -567,7 +604,7 @@ export default {
567 /** 删除按钮操作 */ 604 /** 删除按钮操作 */
568 handleDelete(row) { 605 handleDelete(row) {
569 const ids = row.id || this.ids; 606 const ids = row.id || this.ids;
570 - this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?').then(function() { 607 + this.$modal.confirm('是否确认删除【登记著录】编号为"' + ids + '"的数据项?').then(function() {
571 return delBox(ids); 608 return delBox(ids);
572 }).then(() => { 609 }).then(() => {
573 this.getList(); 610 this.getList();
@@ -581,23 +618,22 @@ export default { @@ -581,23 +618,22 @@ export default {
581 }, `box_${new Date().getTime()}.xlsx`) 618 }, `box_${new Date().getTime()}.xlsx`)
582 }, 619 },
583 620
584 - 621 + /** 查看按钮 **/
585 handleCheck(row){ 622 handleCheck(row){
586 this.fileOpen = true; 623 this.fileOpen = true;
587 this.collboxId = row.id; 624 this.collboxId = row.id;
588 }, 625 },
589 626
590 - /** 提交按钮操作 */ 627 + /** 编号按钮操作 */
591 handleCommit(row){ 628 handleCommit(row){
592 const id = row.id || this.ids 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 //打开加入盒页面 并保存id 639 //打开加入盒页面 并保存id
@@ -618,17 +654,48 @@ export default { @@ -618,17 +654,48 @@ export default {
618 return; 654 return;
619 } 655 }
620 let collerboxid = this.collerboxid; 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 </script> 701 </script>
ruoyi-ui/src/views/archives/file/index.vue
@@ -373,7 +373,7 @@ export default { @@ -373,7 +373,7 @@ export default {
373 this.title = "..."; 373 this.title = "...";
374 this.reload() 374 this.reload()
375 }, 375 },
376 - 376 + //加载完成 fileOpen = true
377 reload(){ 377 reload(){
378 this.fileOpen = false; 378 this.fileOpen = false;
379 this.$nextTick(function (){ 379 this.$nextTick(function (){
ruoyi-ui/src/views/archives/index.vue
@@ -35,8 +35,8 @@ @@ -35,8 +35,8 @@
35 35
36 36
37 <el-tabs v-model="activeName" type="card" @tab-click="handleClick" v-if="stattwo"> 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 <el-tab-pane label="盒" name="third" ><box v-if="isThird" /></el-tab-pane> 40 <el-tab-pane label="盒" name="third" ><box v-if="isThird" /></el-tab-pane>
41 </el-tabs> 41 </el-tabs>
42 42
ruoyi-ui/src/views/archives/preview/preview.vue
@@ -32,7 +32,7 @@ export default { @@ -32,7 +32,7 @@ export default {
32 if(this.fileurl != null && this.fileurl != undefined){ 32 if(this.fileurl != null && this.fileurl != undefined){
33 33
34 let url = "http://localhost"+ process.env.VUE_APP_BASE_API +this.fileurl; //要预览文件的访问地址 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 methods: { 38 methods: {