From f7000569f76b4224760c541038e4e76a0ad570db Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 17 Oct 2023 17:34:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=88=90=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../prearchiveLibrary/prearchiveLibrary.js | 7 +- src/api/system/fieldMate.js | 20 +- src/components/Crud/crud.js | 9 +- src/views/prearchiveLibrary/add.json | 674 ------------------ src/views/prearchiveLibrary/index.vue | 111 +-- .../prearchiveLibrary/module/batchFile.vue | 82 ++- src/views/prearchiveLibrary/module/form.vue | 91 --- src/views/system/dept/index.vue | 2 +- src/views/system/fieldCorresManage/index.vue | 22 +- .../fieldCorresManage/module/detail.vue | 4 +- .../system/fieldCorresManage/module/form.vue | 8 +- 11 files changed, 171 insertions(+), 859 deletions(-) delete mode 100644 src/views/prearchiveLibrary/add.json delete mode 100644 src/views/prearchiveLibrary/module/form.vue diff --git a/src/api/prearchiveLibrary/prearchiveLibrary.js b/src/api/prearchiveLibrary/prearchiveLibrary.js index 6f0786e..ee5fb4b 100644 --- a/src/api/prearchiveLibrary/prearchiveLibrary.js +++ b/src/api/prearchiveLibrary/prearchiveLibrary.js @@ -32,12 +32,11 @@ export function prearchEdit(data) { }) } -export function del(ids) { - const params = { id: ids[0] } +export function del(data) { return request({ url: 'api/re-document/deleteDocument', - method: 'delete', - params + method: 'post', + data }) } diff --git a/src/api/system/fieldMate.js b/src/api/system/fieldMate.js index 3bfc26b..dd5e978 100644 --- a/src/api/system/fieldMate.js +++ b/src/api/system/fieldMate.js @@ -50,4 +50,22 @@ export function FetchInitFieldMate(params) { }) } -export default { add, edit, del, FetchInitFieldMateList, FetchCheckRepeat, FetchInitFieldMate } +// 根据预归档库获取对应规则 +export function FetchMateByDocumentId(params) { + return request({ + url: 'api/fieldMate/getMateByDocumentId', + method: 'get', + params + }) +} + +// 根据预归档库和门类获取详情 +export function FetchDetailsByDocumentIdAndCategoryId(params) { + return request({ + url: 'api/fieldMate/getDetailsByDocumentIdAndCategoryId', + method: 'get', + params + }) +} + +export default { add, edit, del, FetchInitFieldMateList, FetchCheckRepeat, FetchInitFieldMate, FetchMateByDocumentId, FetchDetailsByDocumentIdAndCategoryId } diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index 8cea1ba..ab6b39c 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -143,8 +143,13 @@ function CRUD(options) { crud.page.total = data.totalElements !== null ? data.totalElements : data.length crud.data = data.content ? data.content : data } else { - crud.page.total = data.list.totalElements - crud.data = data.list.content + if (data.list) { + crud.page.total = data.list.totalElements + crud.data = data.list.content + } else { + crud.page.total = data.totalElements !== null ? data.totalElements : data.length + crud.data = data.content ? data.content : data + } } crud.resetDataStatus() // time 毫秒后显示表格 diff --git a/src/views/prearchiveLibrary/add.json b/src/views/prearchiveLibrary/add.json deleted file mode 100644 index 413c467..0000000 --- a/src/views/prearchiveLibrary/add.json +++ /dev/null @@ -1,674 +0,0 @@ -[ - { - "id": "069B40B02A196E6FA374C9", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "C45F3FF91CC7C1F79BFB5C", - "dicName": "全宗号", - "dicCode": "QZH", - "dicSequence": 16, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1656991927000, - "updateTime": 1656991927000 - }, - "fieldName": "fonds_no", - "fieldCnName": "全宗号", - "isDefaultValue": "", - "isInputClass": "select", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 100, - "isColumnType": 2, - "isSequence": 1, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": true, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 1, - "isDisplayformat": true, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306028000 - }, - { - "id": "C790AA6F7B8FE39922DA3D", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "EAC68B9FE234EDE61B2200", - "dicName": "保管期限", - "dicCode": "Search_BGQX", - "dicSequence": 11, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1654571475000, - "updateTime": 1656991717000 - }, - "fieldName": "retention", - "fieldCnName": "保管期限", - "isDefaultValue": "", - "isInputClass": "select", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 10, - "isColumnType": 2, - "isSequence": 2, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": true, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 2, - "isDisplayformat": true, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306036000 - }, - { - "id": "044BFF833352350E25CC00", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "archive_year", - "fieldCnName": "归档年度", - "isDefaultValue": "", - "isInputClass": "number", - "isDataType": 2, - "isDataTypeDetails": "int", - "isColumnLength": 4, - "isColumnType": 2, - "isSequence": 3, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": true, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 3, - "isDisplayformat": true, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306043000 - }, - { - "id": "6E98E47113E63806DF8DAF", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "piece_no", - "fieldCnName": "件号", - "isDefaultValue": "", - "isInputClass": "number", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 4, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": true, - "isAutomatic": false, - "isFilling": true, - "fillingDigit": 3, - "isDisplay": true, - "displayOrder": 4, - "isDisplayformat": true, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306049000 - }, - { - "id": "2320B1DF39B7DC48E4EEB9", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "archive_no", - "fieldCnName": "档号", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 200, - "isColumnType": 2, - "isSequence": 5, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": true, - "isAutomatic": true, - "isFilling": false, - "isRepeat": true, - "isDisplay": true, - "displayOrder": 5, - "displayOrderBy": "asc", - "displayformatType": "left", - "editLength": 196, - "displayLength": 170, - "queue": 1, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306055000 - }, - { - "id": "799775CE1AFD47A49E986D", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "maintitle", - "fieldCnName": "题名", - "isDefaultValue": "", - "isInputClass": "textarea", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 500, - "isColumnType": 2, - "isSequence": 6, - "isType": 2, - "isSystem": true, - "isLine": true, - "isInput": true, - "isRequired": true, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 6, - "displayformatType": "left", - "editLength": 510, - "displayLength": 400, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663305969000 - }, - { - "id": "90AF675F891F5565522968", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "doc_no", - "fieldCnName": "文号", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 100, - "isColumnType": 2, - "isSequence": 7, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 7, - "displayformatType": "center", - "editLength": 196, - "displayLength": 170, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306077000 - }, - { - "id": "ABD998404F24B78EFC419A", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "8A2C800B2036211C8970AB", - "dicName": "实体分类号(文书档案)", - "dicCode": "WS", - "dicExplain": "实体分类号(文书档案)1级分类", - "dicSequence": 1, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1656917215000, - "updateTime": 1656917215000 - }, - "fieldName": "archive_ctg_no", - "fieldCnName": "分类号", - "isDefaultValue": "", - "isInputClass": "popover", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 8, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 8, - "isDisplayformat": false, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306082000 - }, - { - "id": "0577754F80741962FE5832", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "created_date", - "fieldCnName": "成文日期", - "isDefaultValue": "", - "isInputClass": "date", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 20, - "isColumnType": 2, - "isSequence": 9, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 11, - "displayformatType": "center", - "editLength": 196, - "displayLength": 120, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307568000 - }, - { - "id": "17162B1C966B3FB6D13D04", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "8984F55841E2D541C23318", - "dicName": "密级", - "dicCode": "Search_MJ", - "dicSequence": 10, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1656921207000, - "updateTime": 1656991705000 - }, - "fieldName": "security_class", - "fieldCnName": "密级", - "isDefaultValue": "", - "isInputClass": "select", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 10, - "isColumnType": 2, - "isSequence": 10, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307573000 - }, - { - "id": "FD8529F7BA62866C50FB1A", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "responsibleby", - "fieldCnName": "责任者", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 100, - "isColumnType": 2, - "isSequence": 11, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 12, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307578000 - }, - { - "id": "6D37FF04F5958C4826C003", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "426AA3EF366C7A26A942C8", - "dicName": "机构(问题)", - "dicCode": "Search_JGWT", - "dicSequence": 12, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1656923873000, - "updateTime": 1656991722000 - }, - "fieldName": "organization_matter", - "fieldCnName": "机构(问题)", - "isInputClass": "popover", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 100, - "isColumnType": 2, - "isSequence": 12, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 9, - "displayformatType": "center", - "editLength": 196, - "displayLength": 120, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306163000 - }, - { - "id": "7AAE02A7BAA85E593882D4", - "categoryId": "2C120624FD6083F499653C", - "dictionaryConfigId": { - "id": "BA3910917510B181160A9A", - "dicName": "部门", - "dicCode": "Search_BM", - "dicSequence": 15, - "dicType": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1656991900000, - "updateTime": 1656991900000 - }, - "fieldName": "department", - "fieldCnName": "部门名称", - "isDefaultValue": "", - "isInputClass": "select", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 100, - "isColumnType": 2, - "isSequence": 13, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 10, - "displayformatType": "center", - "editLength": 196, - "displayLength": 120, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306169000 - }, - { - "id": "84CB2FBF76205ED3E89E6B", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "page_qty", - "fieldCnName": "页数", - "isDefaultValue": "", - "isInputClass": "number", - "isDataType": 2, - "isDataTypeDetails": "int", - "isColumnLength": 11, - "isColumnType": 2, - "isSequence": 14, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": true, - "displayOrder": 13, - "displayformatType": "center", - "editLength": 196, - "displayLength": 100, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306176000 - }, - { - "id": "EEF529433F74B3071B438A", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "filing_person", - "fieldCnName": "立卷人", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 15, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307536000 - }, - { - "id": "027393952F6712D97A7B49", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "filing_date", - "fieldCnName": "立卷日期", - "isDefaultValue": "", - "isInputClass": "date", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 20, - "isColumnType": 2, - "isSequence": 16, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307536000 - }, - { - "id": "C359AFEDAEC1BF8CADF9DD", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "check_person", - "fieldCnName": "检查人", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 17, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307536000 - }, - { - "id": "E52EB8A9540FA1EC24F124", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "inspection_date", - "fieldCnName": "检查日期", - "isDefaultValue": "", - "isInputClass": "date", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 18, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307536000 - }, - { - "id": "C33EB66C8B38F89AD1B6E0", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "archive_person", - "fieldCnName": "归档人", - "isDefaultValue": "", - "isInputClass": "text", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 19, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663307536000 - }, - { - "id": "F269D0196AA2A81649324D", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "archive_date", - "fieldCnName": "归档日期", - "isDefaultValue": "", - "isInputClass": "date", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 2, - "isSequence": 20, - "isType": 2, - "isSystem": true, - "isLine": false, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "isDisplay": false, - "displayOrder": 15, - "editLength": 196, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663308894000 - }, - { - "id": "702855664B7BEA7252D402", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "remarks", - "fieldCnName": "备注", - "isDefaultValue": "", - "isInputClass": "textarea", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 500, - "isColumnType": 2, - "isSequence": 22, - "isType": 2, - "isSystem": true, - "isLine": true, - "isInput": true, - "isRequired": false, - "isAutomatic": false, - "isFilling": false, - "editLength": 510, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1663306219000 - }, - { - "id": "4C8BA41A04F1DBF815026B", - "categoryId": "2C120624FD6083F499653C", - "fieldName": "barcode", - "fieldCnName": "条码号", - "isDataType": 1, - "isDataTypeDetails": "varchar", - "isColumnLength": 50, - "isColumnType": 1, - "isSequence": 18, - "isType": 1, - "isSystem": true, - "isInput": true, - "createBy": "admin", - "updatedBy": "admin", - "createTime": 1660706815000, - "updateTime": 1660706815000 - } -] \ No newline at end of file diff --git a/src/views/prearchiveLibrary/index.vue b/src/views/prearchiveLibrary/index.vue index f535b1c..bb4f664 100644 --- a/src/views/prearchiveLibrary/index.vue +++ b/src/views/prearchiveLibrary/index.vue @@ -21,6 +21,10 @@ 编辑 删除 + + + 导出 + @@ -64,21 +68,8 @@ - - - - - 此操作将删除当前所选预归档数据 - 你是否还要继续? - - - - - + @@ -135,14 +126,16 @@ import pagination from '@crud/Pagination' import Treeselect from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import TreeList from './treeList' -import eForm from './module/form' import PreviewForm from '@/views/components/category/PreviewForm' import batchFile from './module/batchFile' import moveFile from './module/moveFile' +import { exportFile } from '@/utils/index' +import qs from 'qs' +import { mapGetters } from 'vuex' export default { name: 'PrearchiveLibrary', - components: { TreeList, eForm, PreviewForm, batchFile, moveFile, Treeselect, rrOperation, crudOperation, pagination }, + components: { TreeList, PreviewForm, batchFile, moveFile, Treeselect, rrOperation, crudOperation, pagination }, cruds() { return [ CRUD({ @@ -152,7 +145,7 @@ export default { add: false, edit: false, del: false, - download: true, + download: false, group: false, reset: true }, @@ -172,8 +165,6 @@ export default { tableDisplayFields: [], // table-list-title字段 arrySort: [], selectedDocument: {}, - - deleteVisible: false, mergeVisible: false, categoryTree: [], form: {}, @@ -195,6 +186,9 @@ export default { } }, computed: { + ...mapGetters([ + 'baseApi' + ]) }, created() { }, @@ -220,9 +214,7 @@ export default { } }) this.$nextTick(() => { - if (this.tableDisplayFields.length !== 0) { - this.crud.toQuery() - } + this.crud.toQuery() }) } }) @@ -234,7 +226,6 @@ export default { let params if (type === 'add') { this.formTitle = '新增文件' - params = { documentId: this.selectedDocument.id, archivesId: null @@ -249,30 +240,6 @@ export default { } this.getFormInfo(params, type) }, - // 选择删除 - toDelete(data) { - this.deleteVisible = true - }, - // 确认删除 - handleDelConfirm(data) { - this.deleteVisible = false - // const params = data.map(item => { - // return item.id - // }) - // del(params).then(res => { - // if (res.doDel.length === 0) { - // this.$message.error('删除失败') - // } else { - // if (res.doDel.length === data.length) { - // this.$message.success('全部删除成功') - // } else { - // this.$message.success('部分删除成功') - // } - // } - // this.deleteVisible = false - // this.crud.refresh() - // }) - }, getFormInfo(params, type) { PrearchiveCrud.FetchDoeditDocument(params).then(data => { const showFiledAll = data.showFiled.filter(item => item.displayOrder).sort((a, b) => a.displayOrder - b.displayOrder) @@ -296,6 +263,56 @@ export default { handlerArchivesSubmit() { this.$refs.previewForm.submitForm('addOrUpdateForm', this.selectedDocument.id) }, + // 删除 + toDelete(datas) { + this.$confirm('此操作将删除当前所选预归档数据' + '你是否还要继续?', '提示', { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning', + dangerouslyUseHTMLString: true + }).then(() => { + this.crud.delAllLoading = true + const ids = [] + datas.forEach(val => { + ids.push(val.id) + }) + const params = { + 'documentId': this.selectedDocument.id, + 'ids': ids + } + PrearchiveCrud.del(params).then(() => { + this.crud.notify('删除成功', CRUD.NOTIFICATION_TYPE.SUCCESS) + this.crud.delAllLoading = false + this.crud.refresh() + }).catch(err => { + this.crud.delAllLoading = false + console.log(err) + }) + }).catch(() => { + }) + }, + // 导出 + doExport(datas) { + this.crud.downloadLoading = true + this.$confirm('此操作将导出所选数据' + '你是否还要继续?', '提示', { + confirmButtonText: '继续', + cancelButtonText: '取消', + type: 'warning', + dangerouslyUseHTMLString: true + }).then(() => { + const ids = [] + datas.forEach(val => { + ids.push(val.id) + }) + const params = { + 'documentId': this.selectedDocument.id, + 'ids': ids + } + exportFile(this.baseApi + '/api/re-document/download?' + qs.stringify(params, { indices: false })) + }).catch(() => { + }) + }, + handleBatch() { this.$refs.batchForm.batchVisible = true }, diff --git a/src/views/prearchiveLibrary/module/batchFile.vue b/src/views/prearchiveLibrary/module/batchFile.vue index 405e498..aca50f2 100644 --- a/src/views/prearchiveLibrary/module/batchFile.vue +++ b/src/views/prearchiveLibrary/module/batchFile.vue @@ -31,6 +31,7 @@ flat :multiple="false" :normalizer="normalizer" + :default-expand-level="6" placeholder="请选择目标门类(整理库/管理库门类)" @select="handleSelectCategory" /> @@ -73,7 +74,6 @@ {{ item.value }} - {{ item.isDisplay ? '显示': '隐藏' }} @@ -83,13 +83,13 @@ {{ selectedCategoryName }} - - {{ item.fieldCnName }} - {{ item.isDisplay ? '显示': '隐藏' }} + + {{ item.categoryFieldId.fieldCnName }} + {{ item.categoryFieldId.isInput ? '显示': '隐藏' }} - + @@ -36,7 +36,7 @@ {{ item.categoryFieldId.fieldCnName }} - {{ item.categoryFieldId.isDisplay ? '显示': '隐藏' }} + {{ item.categoryFieldId.isInput ? '显示': '隐藏' }} diff --git a/src/views/system/fieldCorresManage/module/form.vue b/src/views/system/fieldCorresManage/module/form.vue index 1d40a87..902742b 100644 --- a/src/views/system/fieldCorresManage/module/form.vue +++ b/src/views/system/fieldCorresManage/module/form.vue @@ -34,7 +34,7 @@ {{ item.value }} - {{ item.isDisplay ? '显示': '隐藏' }} + {{ item.isInput ? '显示': '隐藏' }} @@ -46,7 +46,7 @@ {{ item.fieldCnName }} - {{ item.isDisplay ? '显示': '隐藏' }} + {{ item.isInput ? '显示': '隐藏' }} @@ -97,12 +97,12 @@ export default { selectChange(index) { this.options.forEach((item) => { if (item.fieldCnName === this.selectStatus[index].value) { - this.selectStatus.splice(index, 1, { mode: false, value: this.selectStatus[index].value, field: item, isDisplay: item.isDisplay }) + this.selectStatus.splice(index, 1, { mode: false, value: this.selectStatus[index].value, field: item, isInput: item.isInput }) } }) }, textMode(index) { - this.selectStatus.splice(index, 1, { mode: true, value: this.selectStatus[index].value, field: null, isDisplay: this.selectStatus[index].isDisplay }) + this.selectStatus.splice(index, 1, { mode: true, value: this.selectStatus[index].value, field: null, isInput: this.selectStatus[index].isInput }) }, doSubmit() { this.$refs['cuForm'].validate((valid) => {
此操作将删除当前所选预归档数据
{{ item.value }}
{{ item.fieldCnName }}
{{ item.categoryFieldId.fieldCnName }}