Commit 89e70929144ec2a0c9f141bf1499ebc5df994f2d
1 parent
c397f373
档案删除
Showing
8 changed files
with
62 additions
and
7 deletions
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesCollectBoxController.java
| ... | ... | @@ -92,7 +92,19 @@ public class ArchivesCollectBoxController extends BaseController |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | - * 删除【请填写功能名称】 | |
| 95 | + * 删除【请填写功能名称】 恢复 | |
| 96 | + */ | |
| 97 | + @PreAuthorize("@ss.hasPermi('archives:collerctbox:collerctbox')") | |
| 98 | + @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | |
| 99 | + @DeleteMapping("/updateremove/{ids}/{remove}") | |
| 100 | + public AjaxResult UpdateremoveType(@PathVariable Long[] ids,@PathVariable String remove) | |
| 101 | + { | |
| 102 | + return toAjax(archivesCollectBoxService.UpdateremoveTypeArchivesCollectBoxByIds(ids,remove)); | |
| 103 | + } | |
| 104 | + | |
| 105 | + | |
| 106 | + /** | |
| 107 | + * 彻底删除【请填写功能名称】 | |
| 96 | 108 | */ |
| 97 | 109 | @PreAuthorize("@ss.hasPermi('archives:collerctbox:remove')") |
| 98 | 110 | @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE) | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesCollectBoxMapper.java
| ... | ... | @@ -61,6 +61,7 @@ public interface ArchivesCollectBoxMapper |
| 61 | 61 | public int deleteArchivesCollectBoxByIds(Long[] ids); |
| 62 | 62 | |
| 63 | 63 | |
| 64 | + public int UpdateremoveTypeArchivesCollectBoxByIds(@Param("ids")Long[] ids,@Param("remove")String remove); | |
| 64 | 65 | /** |
| 65 | 66 | * |
| 66 | 67 | * @param apprvoal | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesCollectBoxService.java
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesCollectBoxServiceImpl.java
| ... | ... | @@ -82,6 +82,12 @@ public class ArchivesCollectBoxServiceImpl implements IArchivesCollectBoxService |
| 82 | 82 | return archivesCollectBoxMapper.deleteArchivesCollectBoxByIds(ids); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + | |
| 86 | + public int UpdateremoveTypeArchivesCollectBoxByIds(Long[] id,String remove){ | |
| 87 | + | |
| 88 | + return archivesCollectBoxMapper.UpdateremoveTypeArchivesCollectBoxByIds(id,remove); | |
| 89 | + } | |
| 90 | + | |
| 85 | 91 | /** |
| 86 | 92 | * 删除【请填写功能名称】信息 |
| 87 | 93 | * | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesCollectBoxMapper.xml
| ... | ... | @@ -214,6 +214,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 214 | 214 | #{id} |
| 215 | 215 | </foreach> |
| 216 | 216 | </delete> |
| 217 | + | |
| 218 | + | |
| 219 | + <delete id="UpdateremoveTypeArchivesCollectBoxByIds"> | |
| 220 | + update archives_collect_box set remove =#{remove} where id in | |
| 221 | + <foreach item="id" collection="ids" open="(" separator="," close=")"> | |
| 222 | + #{id} | |
| 223 | + </foreach> | |
| 224 | + </delete> | |
| 225 | + | |
| 217 | 226 | |
| 218 | 227 | <update id="Scatter" > |
| 219 | 228 | update archives_collect_box set | ... | ... |
ruoyi-ui/src/api/archives/collerctbox.js
| ... | ... | @@ -36,6 +36,14 @@ export function updateBox(data) { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | // 删除【请填写功能名称】 |
| 39 | +export function updatedelBox(id,remove) { | |
| 40 | + return request({ | |
| 41 | + url: '/archives/collerctbox/updateremove/' + id +"/"+remove, | |
| 42 | + method: 'delete' | |
| 43 | + }) | |
| 44 | +} | |
| 45 | + | |
| 46 | +// 彻底删除【请填写功能名称】 | |
| 39 | 47 | export function delBox(id) { |
| 40 | 48 | return request({ |
| 41 | 49 | url: '/archives/collerctbox/' + id, | ... | ... |
ruoyi-ui/src/views/archives/box/filingindex.vue
| ... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 | :disabled="single" |
| 71 | 71 | @click="handleupdateyreturn" |
| 72 | 72 | v-hasPermi="['archives:collerctbox:inserBox']" |
| 73 | - >退回</el-button> | |
| 73 | + >打回</el-button> | |
| 74 | 74 | </el-col> |
| 75 | 75 | <el-col :span="1.5" v-if="updateyfiling"> |
| 76 | 76 | <el-button |
| ... | ... | @@ -325,10 +325,24 @@ export default { |
| 325 | 325 | this.boxsId = row.id; |
| 326 | 326 | this.boxtOpen = true; |
| 327 | 327 | }, |
| 328 | - /** 退回 **/ | |
| 328 | + /** 打回 **/ | |
| 329 | 329 | handleupdateyreturn(row){ |
| 330 | + const id = row.id || this.ids | |
| 331 | + this.handleSelectId(id,"2") | |
| 332 | + }, | |
| 330 | 333 | |
| 334 | + handleSelectId(id,apprvoal){ | |
| 335 | + getBox(id).then(response => { | |
| 336 | + let from = response.data; | |
| 337 | + from.apprvoal = apprvoal; | |
| 338 | + updateBox(from).then(response => { | |
| 339 | + this.$modal.msgSuccess("提交成功"); | |
| 340 | + this.open = false; | |
| 341 | + this.getList(); | |
| 342 | + }); | |
| 343 | + }); | |
| 331 | 344 | }, |
| 345 | + | |
| 332 | 346 | handleupdateyreturn1(row){ |
| 333 | 347 | this.title="上架"; |
| 334 | 348 | this.shelveType=1; |
| ... | ... | @@ -344,9 +358,11 @@ export default { |
| 344 | 358 | this.$nextTick(()=>{ |
| 345 | 359 | this.$refs.shelve.getList(); |
| 346 | 360 | }) |
| 347 | - },handleCheckShelve(){ | |
| 361 | + }, | |
| 362 | + handleCheckShelve(){ | |
| 348 | 363 | this.$refs.shelve.shelve(); |
| 349 | - },handleCheckShelveDown(){ | |
| 364 | + }, | |
| 365 | + handleCheckShelveDown(){ | |
| 350 | 366 | this.$refs.shelve.shelveDown(); |
| 351 | 367 | } |
| 352 | 368 | ... | ... |
ruoyi-ui/src/views/archives/collerctbox/index.vue
| ... | ... | @@ -358,7 +358,7 @@ |
| 358 | 358 | </template> |
| 359 | 359 | |
| 360 | 360 | <script> |
| 361 | -import { listCollerBox, getBox, delBox, addBox, updateBox } from "@/api/archives/collerctbox"; | |
| 361 | +import { listCollerBox, getBox, delBox, addBox, updateBox,updatedelBox } from "@/api/archives/collerctbox"; | |
| 362 | 362 | import { listBox } from "@/api/archives/box"; |
| 363 | 363 | |
| 364 | 364 | import file from "@/views/archives/file/index.vue"; |
| ... | ... | @@ -587,8 +587,9 @@ export default { |
| 587 | 587 | /** 删除按钮操作 */ |
| 588 | 588 | handleDelete(row) { |
| 589 | 589 | const ids = row.id || this.ids; |
| 590 | + let remove = 1; | |
| 590 | 591 | this.$modal.confirm('是否确认删除【登记著录】编号为"' + ids + '"的数据项?').then(function() { |
| 591 | - return delBox(ids); | |
| 592 | + return updatedelBox(ids,remove); | |
| 592 | 593 | }).then(() => { |
| 593 | 594 | this.getList(); |
| 594 | 595 | this.$modal.msgSuccess("删除成功"); | ... | ... |