Commit de53b254d7e8f60488840cccaccae9210fed8529
1 parent
eab3bef4
conflictJava
Showing
14 changed files
with
517 additions
and
34 deletions
ruoyi-admin/src/main/resources/application-druid.yml
| ... | ... | @@ -6,7 +6,7 @@ spring: |
| 6 | 6 | druid: |
| 7 | 7 | # 主库数据源 |
| 8 | 8 | master: |
| 9 | - url: jdbc:mysql://192.168.168.111:3306/archives?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 | |
| 9 | + url: jdbc:mysql://192.168.168.140:3306/archives?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 | |
| 10 | 10 | username: root |
| 11 | 11 | password: root |
| 12 | 12 | # 从库数据源 | ... | ... |
ruoyi-admin/src/main/resources/application.yml
| ... | ... | @@ -62,7 +62,7 @@ spring: |
| 62 | 62 | # redis 配置 |
| 63 | 63 | redis: |
| 64 | 64 | # 地址 |
| 65 | - host: 192.168.168.111 | |
| 65 | + host: 192.168.168.140 | |
| 66 | 66 | # 端口,默认为6379 |
| 67 | 67 | port: 6379 |
| 68 | 68 | # 数据库索引 |
| ... | ... | @@ -94,7 +94,7 @@ token: |
| 94 | 94 | # MyBatis配置 |
| 95 | 95 | mybatis: |
| 96 | 96 | # 搜索指定包别名 |
| 97 | - typeAliasesPackage: com.ruoyi.**.domain | |
| 97 | + typeAliasesPackage: com.archives.**.domain,com.ruoyi.**.domain | |
| 98 | 98 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 99 | 99 | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| 100 | 100 | # 加载全局的配置文件 | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesBorrowController.java
| ... | ... | @@ -62,4 +62,16 @@ public class ArchivesBorrowController extends BaseController |
| 62 | 62 | return success(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + | |
| 66 | + /** | |
| 67 | + * 新增【请填写功能名称】 | |
| 68 | + */ | |
| 69 | + @PreAuthorize("@ss.hasPermi('archives:borrow:add')") | |
| 70 | + @Log(title = "【新增】", businessType = BusinessType.INSERT) | |
| 71 | + @PostMapping | |
| 72 | + public AjaxResult add(@RequestBody ArchivesBorrow archivesBorrow) | |
| 73 | + { | |
| 74 | + return toAjax(archivesBorrowService.insertArchivesBorrow(archivesBorrow)); | |
| 75 | + } | |
| 76 | + | |
| 65 | 77 | } | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/controller/ArchivesController.java
| ... | ... | @@ -9,31 +9,5 @@ import org.springframework.web.bind.annotation.RestController; |
| 9 | 9 | @RequestMapping("/archives") |
| 10 | 10 | public class ArchivesController { |
| 11 | 11 | |
| 12 | - /** | |
| 13 | - * 登记著录 | |
| 14 | - */ | |
| 15 | - @PreAuthorize("@ss.hasPermi('archives:list')") | |
| 16 | - @RequestMapping("/index") | |
| 17 | - public void ArchivesController(){ | |
| 18 | - } | |
| 19 | - | |
| 20 | - | |
| 21 | - /** | |
| 22 | - * 登记著录 | |
| 23 | - */ | |
| 24 | - @PreAuthorize("@ss.hasPermi('archives:list')") | |
| 25 | - @RequestMapping("/yfiling") | |
| 26 | - public void ArchivesYfilingController(){ | |
| 27 | - } | |
| 28 | - | |
| 29 | - | |
| 30 | - /** | |
| 31 | - * 登记著录 | |
| 32 | - */ | |
| 33 | - @PreAuthorize("@ss.hasPermi('archives:list')") | |
| 34 | - @RequestMapping("/filing") | |
| 35 | - public void ArchivesFilingController(){ | |
| 36 | - } | |
| 37 | - | |
| 38 | 12 | |
| 39 | 13 | } | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/mapper/ArchivesBorrowMapper.java
| ... | ... | @@ -46,5 +46,13 @@ public interface ArchivesBorrowMapper |
| 46 | 46 | * @return 【请填写功能名称】集合 |
| 47 | 47 | */ |
| 48 | 48 | int updateArchivesBorrowByIds(@Param("archivesBorrow") ArchivesBorrow archivesBorrow, @Param("ids") Long[] ids); |
| 49 | + | |
| 50 | + /** | |
| 51 | + * 新增【请填写功能名称】 | |
| 52 | + * | |
| 53 | + * @param archivesBorrow 【请填写功能名称】 | |
| 54 | + * @return 结果 | |
| 55 | + */ | |
| 56 | + public int insertArchivesBorrow(ArchivesBorrow archivesBorrow); | |
| 49 | 57 | |
| 50 | 58 | } | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/IArchivesBorrowService.java
| ... | ... | @@ -44,4 +44,13 @@ public interface IArchivesBorrowService |
| 44 | 44 | * @return |
| 45 | 45 | */ |
| 46 | 46 | int archivesRenew(Long[] ids); |
| 47 | + | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * 新增 | |
| 51 | + * | |
| 52 | + * @param archivesBorrow | |
| 53 | + * @return 结果 | |
| 54 | + */ | |
| 55 | + public int insertArchivesBorrow(ArchivesBorrow archivesBorrow); | |
| 47 | 56 | } | ... | ... |
ruoyi-archives/src/main/java/com/ruoyi/service/impl/ArchivesBorrowServiceImpl.java
| ... | ... | @@ -14,6 +14,9 @@ import java.time.LocalDateTime; |
| 14 | 14 | import java.time.format.DateTimeFormatter; |
| 15 | 15 | import java.util.Date; |
| 16 | 16 | import java.util.List; |
| 17 | +import java.util.Random; | |
| 18 | + | |
| 19 | +import com.ruoyi.common.utils.DateUtils; | |
| 17 | 20 | |
| 18 | 21 | /** |
| 19 | 22 | * 【请填写功能名称】Service业务层处理 |
| ... | ... | @@ -79,4 +82,21 @@ public class ArchivesBorrowServiceImpl implements IArchivesBorrowService |
| 79 | 82 | } |
| 80 | 83 | |
| 81 | 84 | |
| 85 | + /** | |
| 86 | + * 新增【请填写功能名称】 | |
| 87 | + * | |
| 88 | + * @param archivesBorrow 【请填写功能名称】 | |
| 89 | + * @return 结果 | |
| 90 | + */ | |
| 91 | + @Override | |
| 92 | + public int insertArchivesBorrow(ArchivesBorrow archivesBorrow) | |
| 93 | + { //借阅单号 | |
| 94 | + Random r=new Random(); | |
| 95 | + String borrowMark = "ASDF" + System.currentTimeMillis() + "-" + r.nextInt(500); | |
| 96 | + archivesBorrow.setBorrowMark(borrowMark); | |
| 97 | + archivesBorrow.setCreateTime(DateUtils.getNowDate()); | |
| 98 | + return archivesBorrowMapper.insertArchivesBorrow(archivesBorrow); | |
| 99 | + } | |
| 100 | + | |
| 101 | + | |
| 82 | 102 | } | ... | ... |
ruoyi-archives/src/main/resources/mapper/archives/ArchivesBorrowMapper.xml
| ... | ... | @@ -99,4 +99,45 @@ |
| 99 | 99 | </foreach> |
| 100 | 100 | </update> |
| 101 | 101 | |
| 102 | + <insert id="insertArchivesBorrow" parameterType="ArchivesBorrow" useGeneratedKeys="true" keyProperty="id"> | |
| 103 | + insert into archives_borrow | |
| 104 | + <trim prefix="(" suffix=")" suffixOverrides=","> | |
| 105 | + <if test="name != null">name,</if> | |
| 106 | + <if test="dept != null">dept,</if> | |
| 107 | + <if test="borrowDate != null">borrow_date,</if> | |
| 108 | + <if test="phone != null">phone,</if> | |
| 109 | + <if test="mode != null">mode,</if> | |
| 110 | + <if test="boxType != null">box_type,</if> | |
| 111 | + <if test="borrowName != null">borrow_name,</if> | |
| 112 | + <if test="borrowType != null">borrow_type,</if> | |
| 113 | + <if test="collectBoxId != null">collect_box_id,</if> | |
| 114 | + <if test="createBy != null">create_by,</if> | |
| 115 | + <if test="createTime != null">create_time,</if> | |
| 116 | + <if test="updateBy != null">update_by,</if> | |
| 117 | + <if test="updateTime != null">update_time,</if> | |
| 118 | + <if test="returnDate != null">return_date,</if> | |
| 119 | + <if test="returnedDate != null">returned_date,</if> | |
| 120 | + <if test="borrowMark != null">borrow_mark,</if> | |
| 121 | + <if test="status != null">status,</if> | |
| 122 | + </trim> | |
| 123 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | |
| 124 | + <if test="name != null">#{name},</if> | |
| 125 | + <if test="dept != null">#{dept},</if> | |
| 126 | + <if test="borrowDate != null">#{borrowDate},</if> | |
| 127 | + <if test="phone != null">#{phone},</if> | |
| 128 | + <if test="mode != null">#{mode},</if> | |
| 129 | + <if test="boxType != null">#{boxType},</if> | |
| 130 | + <if test="borrowName != null">#{borrowName},</if> | |
| 131 | + <if test="borrowType != null">#{borrowType},</if> | |
| 132 | + <if test="collectBoxId != null">#{collectBoxId},</if> | |
| 133 | + <if test="createBy != null">#{createBy},</if> | |
| 134 | + <if test="createTime != null">#{createTime},</if> | |
| 135 | + <if test="updateBy != null">#{updateBy},</if> | |
| 136 | + <if test="updateTime != null">#{updateTime},</if> | |
| 137 | + <if test="returnDate != null">#{returnDate},</if> | |
| 138 | + <if test="returnedDate != null">#{returnedDate},</if> | |
| 139 | + <if test="borrowMark != null">#{borrowMark},</if> | |
| 140 | + <if test="status != null">#{status},</if> | |
| 141 | + </trim> | |
| 142 | + </insert> | |
| 102 | 143 | </mapper> |
| 103 | 144 | \ No newline at end of file | ... | ... |
ruoyi-generator/src/main/resources/generator.yml
| 1 | 1 | # 代码生成 |
| 2 | 2 | gen: |
| 3 | 3 | # 作者 |
| 4 | - author: ruoyi | |
| 4 | + author: li | |
| 5 | 5 | # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool |
| 6 | - packageName: com.ruoyi.system | |
| 6 | + packageName: com.archives | |
| 7 | 7 | # 自动去除表前缀,默认是false |
| 8 | 8 | autoRemovePre: false |
| 9 | 9 | # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) |
| 10 | - tablePrefix: sys_ | |
| 11 | 10 | \ No newline at end of file |
| 11 | + tablePrefix: | |
| 12 | 12 | \ No newline at end of file | ... | ... |
ruoyi-ui/src/api/archives/borrow.js
0 → 100644
ruoyi-ui/src/views/archives/collerctbox/filingindex.vue
ruoyi-ui/src/views/archives/collerctbox/index.vue
ruoyi-ui/src/views/archives/remove/index.vue
0 → 100644
ruoyi-ui/src/views/borrow/index.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <div class="app-container"> | |
| 3 | + | |
| 4 | + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px" > | |
| 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 | + | |
| 43 | + | |
| 44 | + | |
| 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> | |
| 59 | + | |
| 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> | |
| 104 | + | |
| 105 | + <pagination | |
| 106 | + v-show="total>0" | |
| 107 | + :total="total" | |
| 108 | + :page.sync="queryParams.pageNum" | |
| 109 | + :limit.sync="queryParams.pageSize" | |
| 110 | + @pagination="getList" | |
| 111 | + /> | |
| 112 | + | |
| 113 | + | |
| 114 | + <el-dialog :title="title" :visible.sync="open" width="40%" append-to-body> | |
| 115 | + <el-form ref="form" :model="form" :rules="rules" label-width="100px"> | |
| 116 | + <el-row> | |
| 117 | + <el-col :span="12"> | |
| 118 | + <el-form-item label="借阅人" prop="name"> | |
| 119 | + <el-input v-model="form.name" placeholder="请输入借阅人" /> | |
| 120 | + </el-form-item> | |
| 121 | + </el-col> | |
| 122 | + <el-col :span="12"> | |
| 123 | + <el-form-item label="借阅部门" prop="dept"> | |
| 124 | + <el-input v-model="form.dept" placeholder="请输入借阅部门" /> | |
| 125 | + </el-form-item> | |
| 126 | + </el-col> | |
| 127 | + </el-row> | |
| 128 | + <el-row> | |
| 129 | + <el-col :span="12"> | |
| 130 | + <el-form-item label="借阅日期" prop="borrowDate"> | |
| 131 | + <el-date-picker clearable | |
| 132 | + v-model="form.borrowDate" | |
| 133 | + type="date" | |
| 134 | + value-format="yyyy-MM-dd" | |
| 135 | + placeholder="请选择借阅日期"> | |
| 136 | + </el-date-picker> | |
| 137 | + </el-form-item> | |
| 138 | + </el-col> | |
| 139 | + <el-col :span="12"> | |
| 140 | + <el-form-item label="电话" prop="phone"> | |
| 141 | + <el-input v-model="form.phone" placeholder="请输入电话" /> | |
| 142 | + </el-form-item> | |
| 143 | + </el-col> | |
| 144 | + </el-row> | |
| 145 | + | |
| 146 | + <el-row> | |
| 147 | + <el-col :span="12"> | |
| 148 | + <el-form-item label="实体利用方式" prop="mode" > | |
| 149 | + <el-radio v-model="form.mode" label="1">实体借阅</el-radio> | |
| 150 | + <el-radio v-model="form.mode" label="2">实体查阅</el-radio> | |
| 151 | + </el-form-item> | |
| 152 | + </el-col> | |
| 153 | + <el-col :span="12"> | |
| 154 | + <el-form-item label="电子利用方式" prop="mode"> | |
| 155 | + <el-radio v-model="form.mode" label="3">查看</el-radio> | |
| 156 | + <el-radio v-model="form.mode" label="4">下载</el-radio> | |
| 157 | + </el-form-item> | |
| 158 | + </el-col> | |
| 159 | + </el-row> | |
| 160 | + | |
| 161 | + <el-row> | |
| 162 | + <el-col :span="12"> | |
| 163 | + <el-form-item label="档案门类" prop="borrowName1"> | |
| 164 | + <el-input v-model="form.borrowName1" placeholder="请输入借阅登记人" /> | |
| 165 | + </el-form-item> | |
| 166 | + | |
| 167 | + </el-col> | |
| 168 | + <el-col :span="12"> | |
| 169 | + <el-form-item label="借阅登记人" prop="borrowName"> | |
| 170 | + <el-input v-model="form.borrowName" placeholder="请输入借阅登记人" /> | |
| 171 | + </el-form-item> | |
| 172 | + </el-col> | |
| 173 | + </el-row> | |
| 174 | + | |
| 175 | + <el-row> | |
| 176 | + | |
| 177 | + <el-form-item label="借阅目的" prop="borrowName"> | |
| 178 | + <el-select v-model="form.borrowType" placeholder="请选择借阅目的"> | |
| 179 | + <el-option | |
| 180 | + v-for="dict in dict.type.borrow_type" | |
| 181 | + :key="dict.value" | |
| 182 | + :label="dict.label" | |
| 183 | + :value="dict.value"> | |
| 184 | + </el-option> | |
| 185 | + </el-select> | |
| 186 | + </el-form-item> | |
| 187 | + | |
| 188 | + </el-row> | |
| 189 | + | |
| 190 | + | |
| 191 | + <el-row> | |
| 192 | + | |
| 193 | + <el-form-item label="申请借阅档案信息" > | |
| 194 | + 添加档案 | |
| 195 | + <table id="borrowTable" > | |
| 196 | + <tr style="border:1px solid #FFDCDF;"> | |
| 197 | + <td>档号</td> | |
| 198 | + <td>题名</td> | |
| 199 | + </tr> | |
| 200 | + <tr style="border:1px solid #FFDCDF;"> | |
| 201 | + <td>11111111111</td> | |
| 202 | + <td>222222222</td> | |
| 203 | + </tr> | |
| 204 | + <tr> | |
| 205 | + | |
| 206 | + </tr> | |
| 207 | + </table> | |
| 208 | + </el-form-item> | |
| 209 | + </el-row> | |
| 210 | + </el-form> | |
| 211 | + <div slot="footer" class="dialog-footer"> | |
| 212 | + <el-button type="primary" @click="submitForm">确 定</el-button> | |
| 213 | + <el-button @click="cancel">取 消</el-button> | |
| 214 | + </div> | |
| 215 | + </el-dialog> | |
| 216 | + </div> | |
| 217 | +</template> | |
| 218 | + | |
| 219 | +<script> | |
| 220 | + import { listCollerBox, getBox, delBox, addBox, updateBox,updatedelBox } from "@/api/archives/collerctbox"; | |
| 221 | + import { addBorrow } from "@/api/archives/borrow.js"; | |
| 222 | + | |
| 223 | + import file from "@/views/archives/file"; | |
| 224 | + export default { | |
| 225 | + dicts: ['borrow_type'], | |
| 226 | + components: { file }, | |
| 227 | + props: { | |
| 228 | + statusPd: { | |
| 229 | + type: Number, // 这里你接收的值是什么类型就写什么类型 | |
| 230 | + }, | |
| 231 | + boxsId: { | |
| 232 | + type: Number, | |
| 233 | + } | |
| 234 | + }, | |
| 235 | + | |
| 236 | + data() { | |
| 237 | + return { | |
| 238 | + // 遮罩层 | |
| 239 | + loading: true, | |
| 240 | + // 选中数组 | |
| 241 | + ids: [], | |
| 242 | + // 非单个禁用 | |
| 243 | + single: true, | |
| 244 | + // 非多个禁用 | |
| 245 | + multiple: true, | |
| 246 | + // 显示搜索条件 | |
| 247 | + showSearch: true, | |
| 248 | + // 总条数 | |
| 249 | + total: 0, | |
| 250 | + // 【登记著录】表格数据 | |
| 251 | + boxList: [], | |
| 252 | + boxtwoList: [], | |
| 253 | + // 弹出层标题 | |
| 254 | + title: "", | |
| 255 | + // 是否显示弹出层 | |
| 256 | + open: false, | |
| 257 | + // 查询参数 | |
| 258 | + queryParams: { | |
| 259 | + pageNum: 1, | |
| 260 | + pageSize: 10, | |
| 261 | + general: null, | |
| 262 | + year: null, | |
| 263 | + title: null, | |
| 264 | + sort: null, | |
| 265 | + safekeepingDate: null, | |
| 266 | + secretLevel: null, | |
| 267 | + pages: null, | |
| 268 | + filingNumber: null, | |
| 269 | + zkNumber: null, | |
| 270 | + locationCode: null, | |
| 271 | + filingDept: null, | |
| 272 | + archivalCode: null, | |
| 273 | + responsibilityName: null, | |
| 274 | + serialMark: null, | |
| 275 | + pieceMark: null, | |
| 276 | + registerMark: null, | |
| 277 | + counsellors: null, | |
| 278 | + filingName: null, | |
| 279 | + summaryName: null, | |
| 280 | + recordType: null, | |
| 281 | + carrierType: null, | |
| 282 | + draftName: null, | |
| 283 | + page: null, | |
| 284 | + documentMark: null, | |
| 285 | + text: null, | |
| 286 | + status: null, | |
| 287 | + apprvoal: null, | |
| 288 | + belongRole: null, | |
| 289 | + boxMark: null, | |
| 290 | + }, | |
| 291 | + // 表单参数 | |
| 292 | + form: {}, | |
| 293 | + // 表单校验 | |
| 294 | + rules: { | |
| 295 | + }, | |
| 296 | + borrowStatus : 1,//可借阅 | |
| 297 | + collectBoxId : null, | |
| 298 | + }; | |
| 299 | + }, | |
| 300 | + //statusPd 0未整理文件 1 已整理文件 2 盒 | |
| 301 | + created() { | |
| 302 | + this.getList(); | |
| 303 | + }, | |
| 304 | + methods: { | |
| 305 | + /** 查询【登记著录】列表 */ | |
| 306 | + getList() { | |
| 307 | + this.queryParams.boxId = this.boxsId != null ? this.boxsId : null; //是否盒内文件 | |
| 308 | + listCollerBox(this.queryParams).then(response => { | |
| 309 | + this.boxList = response.rows; | |
| 310 | + this.total = response.total; | |
| 311 | + this.loading = false; | |
| 312 | + }); | |
| 313 | + }, | |
| 314 | + // 取消按钮 | |
| 315 | + cancel() { | |
| 316 | + this.open = false; | |
| 317 | + this.reset(); | |
| 318 | + }, | |
| 319 | + // 表单重置 | |
| 320 | + reset() { | |
| 321 | + this.form = { | |
| 322 | + id: null, | |
| 323 | + name: null, | |
| 324 | + dept: null, | |
| 325 | + borrowDate: null, | |
| 326 | + phone: null, | |
| 327 | + mode: null, | |
| 328 | + boxType: null, | |
| 329 | + borrowName: null, | |
| 330 | + borrowType: null, | |
| 331 | + collectBoxId: null, | |
| 332 | + createBy: null, | |
| 333 | + createTime: null, | |
| 334 | + updateBy: null, | |
| 335 | + updateTime: null, | |
| 336 | + returnDate: null, | |
| 337 | + returnedDate: null, | |
| 338 | + borrowMark: null, | |
| 339 | + }; | |
| 340 | + this.resetForm("form"); | |
| 341 | + }, | |
| 342 | + /** 搜索按钮操作 */ | |
| 343 | + handleQuery() { | |
| 344 | + this.queryParams.pageNum = 1; | |
| 345 | + this.getList(); | |
| 346 | + }, | |
| 347 | + /** 重置按钮操作 */ | |
| 348 | + resetQuery() { | |
| 349 | + this.resetForm("queryForm"); | |
| 350 | + this.handleQuery(); | |
| 351 | + }, | |
| 352 | + // 多选框选中数据 | |
| 353 | + handleSelectionChange(selection) { | |
| 354 | + this.ids = selection.map(item => item.id) | |
| 355 | + this.single = selection.length!==1 | |
| 356 | + this.multiple = !selection.length | |
| 357 | + }, | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + handleupdateborrow(row){ | |
| 362 | + this.open = true; | |
| 363 | + this.collectBoxId = row.id; | |
| 364 | + }, | |
| 365 | + | |
| 366 | + | |
| 367 | + submitForm(){ | |
| 368 | + this.$refs["form"].validate(valid => { | |
| 369 | + if (valid) { | |
| 370 | + this.form.collectBoxId = this.collectBoxId; | |
| 371 | + addBorrow(this.form).then(response => { | |
| 372 | + this.$modal.msgSuccess("新增成功"); | |
| 373 | + this.open = false; | |
| 374 | + this.getList(); | |
| 375 | + }); | |
| 376 | + | |
| 377 | + } | |
| 378 | + }); | |
| 379 | + } | |
| 380 | + | |
| 381 | + | |
| 382 | + } | |
| 383 | + }; | |
| 384 | +</script> | |
| 385 | + | |
| 386 | +<style> | |
| 387 | + #borrowTable{ | |
| 388 | + width: 80%; | |
| 389 | + border: 1px solid #FFDCDF; | |
| 390 | + margin-left: 10% ; | |
| 391 | + text-align: center; | |
| 392 | + } | |
| 393 | + #borrowTable tr td{ | |
| 394 | + border: 1px solid #FFDCDF; | |
| 395 | + } | |
| 396 | + #borrowTable{ | |
| 397 | + border-collapse: collapse; | |
| 398 | + } | |
| 399 | +</style> | ... | ... |