diff --git a/src/api/archivesManage/library.js b/src/api/archivesManage/library.js index 396e1c6..328e42a 100644 --- a/src/api/archivesManage/library.js +++ b/src/api/archivesManage/library.js @@ -1,23 +1,42 @@ import request from '@/utils/request' import qs from 'qs' -// 根据门类父id获取卷内列表列 -export function FetchInitCategoryViewTable(params) { +export function FetchInitContorlView(params) { return request({ - url: 'api/collect/initCategoryViewTable', - method: 'get', - params + url: 'api/control/initCategoryView' + '?' + qs.stringify(params, { indices: false }), + method: 'get' }) } -export function FetchInitContorlView(params) { +// 获取打印数据 +export function FetchPrintData(params) { return request({ - url: 'api/control/initCategoryView' + '?' + qs.stringify(params, { indices: false }), + url: 'api/control/getPrintData' + '?' + qs.stringify(params, { indices: false }), method: 'get' }) } +// 进入流程 +export function FetchIntoFlowBusiness(data) { + return request({ + url: 'api/control/intoFlowBusiness', + method: 'post', + data: data + }) +} + +// 档案退回流程确定 +export function FetchArchivesReturnConfirm(data) { + return request({ + url: 'api/control/archivesReturnConfirm', + method: 'post', + data: data + }) +} + export default { - FetchInitCategoryViewTable, - FetchInitContorlView + FetchInitContorlView, + FetchPrintData, + FetchIntoFlowBusiness, + FetchArchivesReturnConfirm } diff --git a/src/api/system/fonds.js b/src/api/system/fonds.js index 6a14374..c7119e2 100644 --- a/src/api/system/fonds.js +++ b/src/api/system/fonds.js @@ -71,4 +71,13 @@ export function FetchFondsDetail(params) { }) } -export default { add, edit, del, FetchInitFondsList, FetchUpdateFondsStatus, FetchDownload, FetchFondsCategory, FetchFondsDetail } +// 根据门类和档案id获取显示全宗 +export function FetchInitFondsByCategoryIdAndArchivesId(params) { + return request({ + url: 'api/fonds/initFondsByCategoryIdAndArchivesId', + method: 'get', + params + }) +} + +export default { add, edit, del, FetchInitFondsList, FetchUpdateFondsStatus, FetchDownload, FetchFondsCategory, FetchFondsDetail, FetchInitFondsByCategoryIdAndArchivesId } diff --git a/src/assets/styles/archives-manage.scss b/src/assets/styles/archives-manage.scss index 3746efc..dfa8049 100644 --- a/src/assets/styles/archives-manage.scss +++ b/src/assets/styles/archives-manage.scss @@ -104,7 +104,7 @@ .base-info{ td.el-table__cell .row-state{ display: block; - width: 48px; + width: 60px; height: 26px; line-height: 24px; margin: 0 auto; diff --git a/src/views/archiveKeeping/caseManage/caseList/index.vue b/src/views/archiveKeeping/caseManage/caseList/index.vue index 47ef176..ec2c5f8 100644 --- a/src/views/archiveKeeping/caseManage/caseList/index.vue +++ b/src/views/archiveKeeping/caseManage/caseList/index.vue @@ -16,7 +16,7 @@ /> - + 0) { + for (let i = 0; i < data.length; i++) { + const item = data[i] + const itemValue = item[inputKey] + if (inputValue + '' === itemValue + '') { + outputValue = item[outputKey] + break + } + } + } + return outputValue + }, getClassByStorageType(row) { if (row.storageType === 0) { // 未入 return 'row-state cancel-state' @@ -255,6 +294,48 @@ export default { }, handleCloseDialog(done) { }, + handleDel(data) { + const boolDeposit = data.every(item => item.depositNum === 0) + const boolStorage = data.every(item => item.storageType === 0) + + if (boolStorage) { + if (boolDeposit) { + this.$confirm('此操作将删除所选数据' + '你是否还要继续?', '提示', { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning', + dangerouslyUseHTMLString: true + }).then(() => { + const params = data.map(item => { + return item.id + }) + caseCurd.del(params).then((res) => { + if (res.code !== 500) { + if (res.doDel.length === 0) { + this.$message.error('删除失败') + } else { + if (res.doDel.length === data.length) { + this.$message.success('全部删除成功') + } else { + this.$message.success('部分删除成功') + } + } + this.crud.refresh() + } else { + this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR) + } + }).catch(err => { + console.log(err) + }) + }).catch(() => { + }) + } else { + this.$message.error('请清空档案盒后再删除!') + } + } else { + this.$message.error('请操作出库并清空档案盒后才可删除盒!') + } + }, // 打印 getPrintData() { const params = { @@ -325,8 +406,16 @@ export default { type: 'warning' }) } else { - this.$refs.openCase.openCaseVisible = true - this.$refs.openCase.caseData = data + this.$confirm('此操作将导出所选数据' + '提示:1.确定拆盒后,当前盒号下绑定的所有档案数据将一并清除;?2.若案卷存在多个盒,选择其中一个分盒则自动拆掉该案卷的全部档案盒', '提示', { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning', + dangerouslyUseHTMLString: true + }).then(() => { + this.$refs.openCase.openCaseVisible = true + this.$refs.openCase.caseData = data + }).catch(() => { + }) } } else { this.msgVisible = true diff --git a/src/views/archiveKeeping/caseManage/caseList/module/form.vue b/src/views/archiveKeeping/caseManage/caseList/module/form.vue index a0de84f..2427547 100644 --- a/src/views/archiveKeeping/caseManage/caseList/module/form.vue +++ b/src/views/archiveKeeping/caseManage/caseList/module/form.vue @@ -4,10 +4,14 @@
- + +
+ 已装 + 已入 +
@@ -81,6 +85,8 @@ v-model="form.packDate" type="date" placeholder="选择日期" + align="right" + format="yyyy-MM-dd" style="width: 225px;" /> @@ -92,6 +98,8 @@ v-model="form.checkDate" type="date" placeholder="选择日期" + align="right" + format="yyyy-MM-dd" style="width: 225px;" /> @@ -112,7 +120,7 @@