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 @@ 编辑 删除 + + + 导出 +