Browse Source

批量组卷/批量挂接

master
xuhuajiao 1 year ago
parent
commit
f2bed9ba56
  1. 2
      src/assets/styles/archives-manage.scss
  2. 3
      src/assets/styles/index.scss
  3. 10
      src/assets/styles/yxk-admin.scss
  4. 215
      src/views/collectReorganizi/batchConnection/index.vue
  5. 674
      src/views/collectReorganizi/batchPaper/add.json
  6. 86
      src/views/collectReorganizi/batchPaper/form.vue
  7. 267
      src/views/collectReorganizi/batchPaper/index.vue
  8. 260
      src/views/collectReorganizi/batchPaper/table.json

2
src/assets/styles/archives-manage.scss

@ -775,7 +775,7 @@
margin-left: 10px;
}
&.is-recycle{
margin-right: 0;
margin-right: 10px;
}
}

3
src/assets/styles/index.scss

@ -208,7 +208,8 @@ ul{
//只需要加上这一行
::-webkit-scrollbar-corner {
@include scrollBar-bg;
// @include scrollBar-bg;
background-color: transparent;
}
// 设置loading-mask

10
src/assets/styles/yxk-admin.scss

@ -1949,4 +1949,14 @@ input[type ='number'] {
font-size: 12px;
border-radius: 3px;
@include process-status-style;
}
.vue-treeselect--disabled .vue-treeselect__control{
background-color: #f5f7fa !important;
border-color: #dfe4ed !important;
color: #c0c4cc !important;
cursor: not-allowed !important;
}
.vue-treeselect--disabled .vue-treeselect__single-value{
color: #c0c4cc !important;
}

215
src/views/collectReorganizi/batchConnection/index.vue

@ -0,0 +1,215 @@
<template>
<div class="app-container archives-container">
<div class="container-main" style="justify-content: flex-start;">
<div class="elect-cont-left">
<div class="container-left">
<span class="right-top-line" />
<span class="left-bottom-line" />
<div class="arc-left-tree">
<h3 class="arc-title arc-title-top">档案门类</h3>
<div class="tree-scroll">
<el-tree ref="categroyTree" v-loading="crud.loading" class="arc-tree" :data="crud.data" :props="defaultProps" node-key="id" :expand-on-click-node="false" highlight-current @node-click="handleNodeClick">
<span slot-scope="{ node, data }" class="custom-tree-node">
<span v-if="data.isType === 1 " class="iconFolder">
{{ data.cnName }}
</span>
<span v-if="data.isType === 2" class="iconArch">
{{ data.cnName }}
</span>
<span v-if="data.isType === 3" class="iconFile">
{{ data.cnName }}
</span>
</span>
</el-tree>
</div>
</div>
</div>
</div>
<div class="elect-cont-right" />
</div>
</div>
</template>
<script>
import crudCategory from '@/api/category/category'
import CRUD, { presenter, header } from '@crud/crud'
export default {
name: 'BatchConnection',
components: { },
cruds() {
return [
CRUD({
title: '批量挂接', url: 'api/category/menu',
crudMethod: { ...crudCategory },
optShow: {
add: false,
edit: false,
del: false,
download: false,
group: false
}
})
]
},
mixins: [presenter(), header()],
props: {
},
data() {
return {
defaultProps: {
children: 'children',
label: 'cnName'
},
selectedCategory: {}
}
},
watch: {
},
created() {
},
mounted() {
},
methods: {
filterData(data) {
return data.filter(node => {
if (node.children && node.children.length > 0) {
node.children = this.filterData(node.children) //
}
return node.isType !== 3 // isType3
})
},
//
findNode(tree, func) {
for (const node of tree) {
if (func(node)) return node
if (node.children) {
const res = this.findNode(node.children, func)
if (res) return res
}
}
return null
},
//
expandParents(node) {
node.expanded = true
if (node.parent) {
this.expandParents(node.parent)
}
},
[CRUD.HOOK.afterRefresh]() {
this.crud.data = this.filterData(this.crud.data)
this.$nextTick(() => {
let currentKey
if (localStorage.getItem('currentArchivesKey')) {
currentKey = JSON.parse(localStorage.getItem('currentArchivesKey'))
//
if (this.$refs.categroyTree.getCurrentKey(currentKey.id) == null) {
localStorage.removeItem('currentArchivesKey')
}
//
if (currentKey.isType === 1) {
if (currentKey.children.length !== 0) {
currentKey = this.findNode(currentKey.children, (node) => {
return node.isType !== 1
})
}
}
} else {
//
if (this.crud.data[0].isType === 1) {
currentKey = this.findNode(this.crud.data[0].children, (node) => {
return node.isType !== 1
})
} else {
currentKey = this.crud.data[0]
}
}
if (currentKey.id) {
//
this.$refs.categroyTree.setCurrentKey(currentKey.id)
this.$nextTick(() => {
//
const selectedKey = this.$refs.categroyTree.getCurrentNode()
if (this.$refs.categroyTree.getNode(selectedKey) && this.$refs.categroyTree.getNode(selectedKey).parent) {
this.expandParents(this.$refs.categroyTree.getNode(selectedKey).parent)
}
//
this.handleNodeClick(selectedKey)
})
}
})
},
handleNodeClick(val) {
this.selectedCategory = val
//
localStorage.setItem('currentArchivesKey', JSON.stringify(val))
}
}
}
</script>
<style lang="scss" scoped>
.elect-cont-left{
width: 296px;
padding: 0 !important;
}
[data-theme=light] .elect-cont-left .container-left {
min-height: calc(100vh - 140px);
}
[data-theme=dark] .elect-cont-left .container-left {
min-height: calc(100vh - 160px);
}
.openSidebar .elect-cont-right {
width: calc(100vw - 592px);
}
// [data-theme=light] .elect-cont-right .container-right.tab-content {
// min-height: calc(100vh - 200px) !important;
// }
[data-theme=light] .elect-cont-right {
padding: 20px 0 !important;
}
[data-theme=dark] .elect-cont-right {
margin-top: 0 !important;
}
.arc-title{
position: relative;
height: 48px;
line-height: 48px;
text-align: center;
font-size: 16px;
color: #0C0E1E;
background-color: #F3F5F8;
&::after{
content: "";
position: absolute;
right: 12px;
bottom: 0;
}
}
.arc-title-top{
&::after{
width: 44px;
height: 35px;
background: url("~@/assets/images/collect/daml.png") no-repeat;
background-size: 100% 100%;
}
}
.arc-title-bottom{
&::after{
width: 41px;
height: 40px;
background: url("~@/assets/images/collect/kssx.png") no-repeat;
background-size: 100% 100%;
}
}
.arc-tree{
padding: 0 20px;
overflow: hidden;
overflow-y: scroll;
}
::v-deep .el-tree-node__children .custom-tree-node{
font-size: 14px;
}
</style>

674
src/views/collectReorganizi/batchPaper/add.json

@ -0,0 +1,674 @@
[
{
"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
}
]

86
src/views/collectReorganizi/batchPaper/form.vue

@ -0,0 +1,86 @@
<template>
<!--新增 / 编辑 表单组件-->
<el-dialog class="preview-dialog" :modal-append-to-body="false" :close-on-click-modal="false" append-to-body :before-close="handleClose" :visible="formVisible" :title="formTitle">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<!-- form -->
<!-- @emitTableList="getTableList" -->
<PreviewForm ref="previewForm" :form-preview-data.sync="formPreviewData" :selected-category="selectedCategory" :parents-id="parentsId" :arc-id="arcId" :is-des-form-type="isDesFormType" :is-disabled="isDisabled" :is-has-code="isHasCode" />
<div slot="footer" class="dialog-footer">
<!-- :loading="crud.status.cu === 2" -->
<el-button type="text" @click="formVisible = false">取消</el-button>
<el-button type="primary" @click="formVisible = false">确定</el-button>
</div>
</div>
</el-dialog>
</template>
<script>
import PreviewForm from '@/views/components/category/PreviewForm'
import addJson from './add.json'
export default {
components: { PreviewForm },
data() {
return {
formVisible: false,
formTitle: '新增文件',
loading: false,
formPreviewData: null,
selectedCategory: null,
parentsId: null,
arcId: null,
isDesFormType: 'arcives',
isDisabled: true,
isHasCode: false
}
},
created() {
this.formPreviewData = addJson
},
methods: {
handleClose(done) {
done()
this.formVisible = false
},
save() {
// this.loading = true
// if (this.title === '') {
// const addData = this.formData.fields.map((item) => {
// return {
// dictionaryId: item.id,
// fieldName: item.fieldName,
// fieldCnName: item.fieldCnName,
// connector: item.connector,
// categoryId: item.categoryId
// }
// })
// add(addData).then((res) => {
// this.$message({
// message: '',
// type: 'success',
// duration: 2500
// })
// this.cuDialogVisible = false
// this.loading = false
// this.$emit('refresh')
// })
// } else {
// edit(this.formData.fields).then((res) => {
// this.$message({
// message: '',
// type: 'success',
// duration: 2500
// })
// this.cuDialogVisible = false
// this.loading = false
// this.$emit('refresh')
// })
// }
}
}
}
</script>
<style lang="scss" scoped>
</style>

267
src/views/collectReorganizi/batchPaper/index.vue

@ -5,13 +5,13 @@
<i />
<p>选择组卷条件</p>
</div>
<div class="paper-step-dot dot-active" />
<div class="paper-step-item paper-step2 paper-step2-active">
<div :class="['paper-step-dot', step===2 || step===3 ? 'dot-active':'']" />
<div :class="['paper-step-item paper-step2', step===2 || step===3 ? 'paper-step2-active':'']">
<i />
<p>确认组卷条目</p>
</div>
<div class="paper-step-dot" />
<div class="paper-step-item paper-step3">
<div :class="['paper-step-dot', step===3 ? 'dot-active':'']" />
<div :class="['paper-step-item', 'paper-step3', step===3 ? 'paper-step3-active':'']">
<i />
<p>补充案卷数据</p>
</div>
@ -22,7 +22,7 @@
<el-row>
<el-col :span="12">
<el-form-item label="年份" prop="years">
<el-select v-model="form.years" placeholder="请选择" style="width: 110px;">
<el-select v-model="form.years" placeholder="请选择" style="width: 110px;" :disabled="step===2 || step===3">
<el-option
v-for="item in yearsOptions"
:key="item"
@ -34,7 +34,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="月份" prop="month">
<el-select v-model="form.month" placeholder="请选择" style="width: 110px;">
<el-select v-model="form.month" placeholder="请选择" style="width: 110px;" :disabled="step===2 || step===3">
<el-option
v-for="item in monthOptions"
:key="item.value"
@ -46,7 +46,7 @@
</el-col>
</el-row>
<el-form-item label="全宗" prop="fonds.id">
<el-select v-model="form.fonds.id" placeholder="请选择" style="width: 320px;" @click.native="lastValue = form.fonds.id" @change="changeFondsValue($event)">
<el-select v-model="form.fonds.id" placeholder="请选择" style="width: 320px;" :disabled="step===2 || step===3" @click.native="lastValue = form.fonds.id" @change="changeFondsValue($event)">
<el-option
v-for="(item,index) in fondsOptions"
:key="index"
@ -63,6 +63,7 @@
flat
:multiple="false"
:normalizer="normalizer"
:disabled="step===2 || step===3"
@select="selectCategoryTree"
/>
</el-form-item>
@ -71,17 +72,68 @@
v-model="form.archivesClassId"
:options="classifyOptions"
:normalizer="classifyNormalizer"
:disabled="step===2 || step===3"
placeholder="请选择"
no-options-text="暂无数据"
/>
</el-form-item>
<el-button class="next-btn" type="primary">下一步</el-button>
<el-button v-if="step === 1" class="step-btn next-btn" type="primary" @click="nextFilterStep('form')">下一步</el-button>
</el-form>
</div>
<div class="collect-paper-list">
<div class="collect-no-data">选择组卷条件后自动获取数据</div>
<div :class="['collect-paper-list',{'paper-step2-list': step === 2}]">
<div v-if="step===1" class="collect-no-data">选择组卷条件后自动获取数据</div>
<div v-if="step===2 || step===3" class="collect-paper-table">
<div class="paper-table-header">
<p>成功获得待组卷文件<span>7</span>选中<span>N</span>条进行组卷</p>
<div class="head-search">
<el-input v-model="blurry" clearable size="small" placeholder="输入题名或档号搜索" prefix-icon="el-icon-search" style="width: 200px;" class="filter-item" />
<el-button class="filter-item filter-search" size="mini" type="success" icon="el-icon-search">搜索</el-button>
<el-button class="filter-item filter-refresh" size="mini" type="warning" icon="el-icon-refresh-left">重置</el-button>
</div>
<el-button class="filter-item remove-btn" size="mini" type="success" :disabled="selections.length === 0" @click="toMove(selections)"><i class="iconfont icon-shanchu" />移除</el-button>
</div>
<el-table
ref="table"
v-loading="loading"
class="archives-table"
:data="tableData"
style="width: 100%;"
height="calc(100vh - 706px)"
@select-all="selectAll"
@row-click="clickRowHandler"
@select="handleCurrentChange"
>
<el-table-column type="selection" align="center" width="55" />
<el-table-column prop="category_type" label="门类级别" align="center" min-width="100">
<template slot-scope="scope">
<span v-if="scope.row.category_type === 5" style="width:56px">文件级</span>
<span v-if="scope.row.category_type === 4" style="width:56px">卷内级</span>
<span v-if="scope.row.category_type === 3" style="width:56px">案卷级</span>
</template>
</el-table-column>
<el-table-column prop="category_name" label="门类名称" align="center" show-overflow-tooltip min-width="170" />
<el-table-column prop="child" label="子条数目" align="center" width="100" />
<el-table-column prop="archive_no" label="档号" align="center" show-overflow-tooltip min-width="220" />
<el-table-column prop="maintitle" label="题名" show-overflow-tooltip align="center" min-width="240" />
<el-table-column prop="doc_no" label="发文字号" show-overflow-tooltip width="140" align="center" />
<el-table-column prop="serial_no" label="序号" width="100" align="center" />
<el-table-column prop="fonds_no" label="全宗号" align="center" min-width="180" />
<el-table-column prop="archive_year" label="年度" align="center" min-width="100" />
<el-table-column prop="security_class" label="密级" align="center" min-width="100" />
<el-table-column prop="retention" label="保管期限" align="center" min-width="100" />
<el-table-column prop="arrive_class" label="收发类别" width="140" align="center" />
<el-table-column prop="temp_no" label="临时卷号" show-overflow-tooltip width="140" align="center" />
<el-table-column prop="created_date" label="成文日期" align="center" min-width="180" />
<el-table-column prop="case_name" label="盒名称" show-overflow-tooltip align="center" min-width="200" />
</el-table>
<div class="paper-table-bottom">
<el-button class="step-btn" type="primary" @click="step = 1">上一步</el-button>
<el-button class="step-btn" type="primary" :disabled="selections.length === 0" @click="nextSelectedTable">下一步</el-button>
</div>
</div>
</div>
</div>
<eForm ref="eform" />
</div>
</template>
@ -91,9 +143,11 @@ import { FetchCategoryMenu } from '@/api/system/category/category'
import { FetchArchivesClassTree } from '@/api/system/archivesClass'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import eForm from './form'
import tableData from './table.json'
export default {
name: 'BatchPaper',
components: { Treeselect },
components: { eForm, Treeselect },
data() {
return {
form: {
@ -122,6 +176,11 @@ export default {
lastValue: '',
categoryDatas: [],
classifyOptions: [],
blurry: null,
tableData: [],
loading: false,
selections: [],
step: 1,
rules: {
years: [{ required: true, message: '请选择年份', trigger: 'change' }],
month: [{ required: true, message: '请选择月份', trigger: 'change' }],
@ -138,6 +197,17 @@ export default {
this.getCategoryDataTree()
},
methods: {
nextFilterStep(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
this.step = 2
this.tableData = tableData.data.content
} else {
console.log('error submit!!')
return false
}
})
},
generateYears() {
const currentYear = new Date().getFullYear()
for (let i = 0; i < 11; i++) {
@ -221,6 +291,94 @@ export default {
label: node.name,
children: node.childArchivesClass
}
},
nextSelectedTable() {
this.step = 3
this.handleForm('add')
},
// table -
selectAll(val) {
this.selections = val
},
// table - row
clickRowHandler(row) {
this.$refs.table.clearSelection()
this.$refs.table.toggleRowSelection(row)
this.selections = []
this.selections.push(row)
},
//
handleCurrentChange(selection, row) {
this.selections = selection
},
// -form/-api
handleForm(type) {
this.$refs.eform.formVisible = true
// if (type === 'add') {
// this.$refs.eform.formTitle = ''
// } else if (type === 'edit') {
// this.$refs.eform.formTitle = ''
// }
this.$refs.eform.formTitle = '新增档案'
//
const params = {
categoryId: this.categoryId,
archivesId: this.arcId
}
this.getFormInfo(params, type)
},
getFormInfo(params, type, isAnOrJuan) {
// FetchFormDisplayFields(params).then(data => {
// this.formPreviewData = data.showFiled
// this.$nextTick(() => {
// if (type === 'edit') {
// this.$refs.previewForm.addOrUpdateForm = data.echo
// } else {
// if (this.recycleMain.selectedCategory.isType !== 5) {
// //
// this.formPreviewData.forEach(item => {
// if (isAnOrJuan === 1) {
// if (this.recycleMain.selectedCategory.isType !== 3) {
// if (this.recycleMain.projectSelection[item.fieldName]) {
// this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.projectSelection))
// }
// }
// } else if (isAnOrJuan === 2) {
// if (this.recycleMain.anjuanSelection[item.fieldName]) {
// this.$refs.previewForm.addOrUpdateForm = JSON.parse(JSON.stringify(this.recycleMain.anjuanSelection))
// }
// }
// })
// }
// }
// this.isDesFormType = 'arcives'
// this.$refs.previewForm.FetchNoFormatField(this.categoryId)
// })
// })
},
//
toMove(datas) {
this.$confirm('此操作将把所选条目从此次批量组卷中移除' + '<span>你是否还要继续?</span>', '提示', {
confirmButtonText: '继续',
cancelButtonText: '取消',
type: 'warning',
dangerouslyUseHTMLString: true
}).then(() => {
// this.crud.delAllLoading = true
const userIds = []
datas.forEach(val => {
userIds.push(val.userId)
})
// crudUser.del(userIds).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(() => {
})
}
}
}
@ -231,7 +389,7 @@ export default {
display: flex;
justify-content: center;
align-items: center;
height: 174px;
height: 154px;
background: linear-gradient(180deg, #F3F5F8 29%, #fff 100%);
border: 2px solid #fff;
.paper-step-item{
@ -300,11 +458,11 @@ export default {
}
.collect-paper-filter{
margin-top: 20px;
height: calc(100vh - 333px);
height: calc(100vh - 313px);
background-color: #fff;
.collect-paper-form{
width: 420px;
padding-top: 50px;
padding-top: 30px;
margin: 0 auto;
::v-deep .el-form{
.el-form-item__label{
@ -312,24 +470,93 @@ export default {
}
}
}
.next-btn{
margin-left: 220px;
.step-btn{
color: #fff;
background-color: #0348f3;
border-color: #0348f3;
&.el-button.is-disabled,
&.el-button.is-disabled:hover,
&.el-button.is-disabled:focus{
color: #fff;
background-color: #0348f3;
border-color: #0348f3;
opacity: 0.5 !important;
}
}
.next-btn{
margin-left: 220px;
}
.collect-paper-list{
display: flex;
justify-content: center;
align-items: center;
height: calc(100% - 334px);
position: relative;
// display: flex;
// justify-content: center;
// align-items: center;
height: calc(100% - 314px);
margin: 20px;
background-color: #EDEFF3;
&.paper-step2-list{
height: calc(100% - 262px);
}
.collect-no-data{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
font-size: 20px;
color: #A6ADB6;
text-align: center;
}
}
}
.collect-paper-table{
padding: 20px;
}
.paper-table-header{
display: flex;
justify-content: space-between;
p{
flex: 1;
padding-left: 52px;
margin-top: -8px;
color: #0C0E1E;
font-size: 15px;
line-height: 52px;
background: url('~@/assets/images/collect/jn.png') no-repeat left top;
background-size: 46px 49px;
span{
padding: 0 2px;
color: #0348F3;
}
}
::v-deep .el-input__inner,
.filter-refresh{
background-color: transparent !important;
border-color: #D9D9D9;
}
.filter-search,
.filter-refresh{
margin-left: 10px;
}
.remove-btn{
height: 32px;
margin-left: 60px;
}
}
.paper-table-bottom{
display: flex;
justify-content: center;
margin-top: 10px;
}
::v-deep .el-table {
.el-table__body-wrapper {
tr{
background-color: #fff !important;
}
}
}
</style>

260
src/views/collectReorganizi/batchPaper/table.json

@ -0,0 +1,260 @@
{
"code": 200,
"message": "操作成功",
"data": {
"content": [
{
"case_no": "44337256D85D22890B5C0E",
"category_name": "文书档案(卷内)",
"folder_location": "1-1-1-1-1",
"doc_no": "文(2023)9号",
"case_name": "JJ0001-D-WS.W-2023-001",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "娱乐节目",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "3DFFB27C2C7F6679C2C7EB",
"security_class": "机密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-001-001",
"fonds_no": "JJ0001",
"created_date": "20230401",
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "44337256D85D22890B5C0E",
"category_name": "文书档案(卷内)",
"folder_location": "1-1-1-1-1",
"doc_no": "文(2023)26号",
"case_name": "JJ0001-D-WS.W-2023-001",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "电视节目",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "4B1AEFADF74824A9883E6C",
"security_class": "机密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-001-002",
"fonds_no": "JJ0001",
"created_date": "20230525",
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "44337256D85D22890B5C0E",
"category_name": "文书档案(案卷)",
"folder_location": "1-1-1-1-1",
"doc_no": null,
"case_name": "JJ0001-D-WS.W-2023-001",
"category_type": 3,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "文娱文件",
"category_id": "F0F59CC713C83AE4BAB99B",
"archives_id": "FF07CAA9C9AEE81DB64357",
"security_class": "机密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-001",
"fonds_no": "JJ0001",
"created_date": null,
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 2,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "73B335163B48D5882F9727",
"category_name": "文书档案(卷内)",
"folder_location": "1-2-2-2-2",
"doc_no": "科(2023)2号",
"case_name": "JJ0001-D-WS.W-2023-002",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区2列2节2层右",
"temp_no": null,
"maintitle": "科学技术指示",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "B8BC0AB00A1C13AFB9BB87",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-002-001",
"fonds_no": "JJ0001",
"created_date": "20231225",
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "73B335163B48D5882F9727",
"category_name": "文书档案(卷内)",
"folder_location": "1-2-2-2-2",
"doc_no": "科(2023)14号",
"case_name": "JJ0001-D-WS.W-2023-002",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区2列2节2层右",
"temp_no": null,
"maintitle": "科学技术大奖",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "C378BFE62FE813CFA34015",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-002-002",
"fonds_no": "JJ0001",
"created_date": "20231230",
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "73B335163B48D5882F9727",
"category_name": "文书档案(案卷)",
"folder_location": "1-2-2-2-2",
"doc_no": null,
"case_name": "JJ0001-D-WS.W-2023-002",
"category_type": 3,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区2列2节2层右",
"temp_no": null,
"maintitle": "科技文件",
"category_id": "F0F59CC713C83AE4BAB99B",
"archives_id": "D9C37A437D416C57F9FF38",
"security_class": "秘密",
"archive_year": 2023,
"archive_no": "JJ0001-D-WS.W-2023-002",
"fonds_no": "JJ0001",
"created_date": null,
"is_storage": 2,
"serial_no": null,
"retention": "定期",
"child": 2,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "70B78223FBFADD51CF0ACF",
"category_name": "文书档案(卷内)",
"folder_location": "1-1-1-1-1",
"doc_no": "领(2023)12号",
"case_name": "JJ0001-Y-WS.W-2023-001",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "李白当领导",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "1212AAD0FE3570C155C43F",
"security_class": "绝密",
"archive_year": 2023,
"archive_no": "JJ0001-Y-WS.W-2023-001-001",
"fonds_no": "JJ0001",
"created_date": "20230506",
"is_storage": 2,
"serial_no": null,
"retention": "永久",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "70B78223FBFADD51CF0ACF",
"category_name": "文书档案(卷内)",
"folder_location": "1-1-1-1-1",
"doc_no": "领(2023)89号",
"case_name": "JJ0001-Y-WS.W-2023-001",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "财务科获一等奖",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "8926C284B1A274FA42B41D",
"security_class": "内部",
"archive_year": 2023,
"archive_no": "JJ0001-Y-WS.W-2023-001-002",
"fonds_no": "JJ0001",
"created_date": "20230716",
"is_storage": 2,
"serial_no": null,
"retention": "永久",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "70B78223FBFADD51CF0ACF",
"category_name": "文书档案(案卷)",
"folder_location": "1-1-1-1-1",
"doc_no": null,
"case_name": "JJ0001-Y-WS.W-2023-001",
"category_type": 3,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "领导文件",
"category_id": "F0F59CC713C83AE4BAB99B",
"archives_id": "B85E86B6F6334DA5069037",
"security_class": "绝密",
"archive_year": 2023,
"archive_no": "JJ0001-Y-WS.W-2023-001",
"fonds_no": "JJ0001",
"created_date": null,
"is_storage": 2,
"serial_no": null,
"retention": "永久",
"child": 2,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
},
{
"case_no": "793B68E6BBE52FE32C819A",
"category_name": "文书档案(卷内)",
"folder_location": "1-1-1-1-1",
"doc_no": "心(2023)1号",
"case_name": "JJ0001-Y-WS.W-2023-002",
"category_type": 4,
"folder_location_details": "5F 档案库 5F_档案库_密集架 1区1列1节1层左",
"temp_no": null,
"maintitle": "关于心理健康测试",
"category_id": "CD135F6A77018CE04D4FDB",
"archives_id": "6A27E658D2A454E5BD7BC9",
"security_class": "机密",
"archive_year": 2023,
"archive_no": "JJ0001-Y-WS.W-2023-002-001",
"fonds_no": "JJ0001",
"created_date": "20230912",
"is_storage": 2,
"serial_no": null,
"retention": "永久",
"child": 0,
"arrive_class": null,
"tag_no": null,
"is_borrow": null
}
],
"totalElements": 24
},
"timestamp": 1696658463172
}
Loading…
Cancel
Save