|
@ -159,6 +159,7 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { FetchInitCartoningList, FetchCartoning } from '@/api/archivesManage/caseManage' |
|
|
import { FetchInitCartoningList, FetchCartoning } from '@/api/archivesManage/caseManage' |
|
|
|
|
|
import { FetchInitArchivesView } from '@/api/archivesManage/archivesList' |
|
|
import { header, form } from '@crud/crud' |
|
|
import { header, form } from '@crud/crud' |
|
|
export default { |
|
|
export default { |
|
|
name: 'Packing', |
|
|
name: 'Packing', |
|
@ -170,6 +171,7 @@ export default { |
|
|
], |
|
|
], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
packingData: [], |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
selectTableData: [], |
|
|
selectTableData: [], |
|
|
archivesTable: [], |
|
|
archivesTable: [], |
|
@ -232,16 +234,48 @@ export default { |
|
|
this.tableData = res.content |
|
|
this.tableData = res.content |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
async getPackingFileList() { |
|
|
|
|
|
let categoryId |
|
|
|
|
|
if (this.caseData.selectedCategory.isType === 2) { |
|
|
|
|
|
categoryId = this.caseData.selectedCategory.children[0].children[0].id |
|
|
|
|
|
} else { |
|
|
|
|
|
categoryId = this.caseData.selectedCategory.children[0].id |
|
|
|
|
|
} |
|
|
|
|
|
const params = { |
|
|
|
|
|
'categoryId': categoryId, |
|
|
|
|
|
'parentsId': this.recycleMain.anjuanSelection.id, |
|
|
|
|
|
'isdel': false, |
|
|
|
|
|
'page': 0, |
|
|
|
|
|
'size': null, |
|
|
|
|
|
'sort': null, |
|
|
|
|
|
'queryType': null, |
|
|
|
|
|
'queryTitle': null, |
|
|
|
|
|
'itemNo': null, |
|
|
|
|
|
'archiveCtgNo': null, |
|
|
|
|
|
'responsibleby': null, |
|
|
|
|
|
'archiveNo': null, |
|
|
|
|
|
'archiveYear': null, |
|
|
|
|
|
'department': null, |
|
|
|
|
|
'retention': null, |
|
|
|
|
|
'securityClass': null, |
|
|
|
|
|
'organizationMatter': null |
|
|
|
|
|
} |
|
|
|
|
|
await FetchInitArchivesView(params).then(data => { |
|
|
|
|
|
if (data) { |
|
|
|
|
|
this.packingData = data.list.content |
|
|
|
|
|
this.archivesTable = data.list.content |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
// 装盒 api |
|
|
// 装盒 api |
|
|
handleCartoning(row) { |
|
|
|
|
|
let packingData = [] |
|
|
|
|
|
|
|
|
async handleCartoning(row) { |
|
|
let jnCategoryId |
|
|
let jnCategoryId |
|
|
let archivesParentsId |
|
|
let archivesParentsId |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
packingData = this.caseData.selections |
|
|
|
|
|
|
|
|
this.packingData = this.caseData.selections |
|
|
jnCategoryId = this.caseData.selectedCategory.id |
|
|
jnCategoryId = this.caseData.selectedCategory.id |
|
|
} else { |
|
|
} else { |
|
|
packingData = this.recycleMain.$refs.file.junneiData |
|
|
|
|
|
|
|
|
await this.getPackingFileList() |
|
|
if (this.caseData.selectedCategory.isType === 2) { |
|
|
if (this.caseData.selectedCategory.isType === 2) { |
|
|
jnCategoryId = this.caseData.selectedCategory.children[0].children[0].id |
|
|
jnCategoryId = this.caseData.selectedCategory.children[0].children[0].id |
|
|
} else { |
|
|
} else { |
|
@ -249,7 +283,7 @@ export default { |
|
|
} |
|
|
} |
|
|
archivesParentsId = this.caseData.selections[0].id |
|
|
archivesParentsId = this.caseData.selections[0].id |
|
|
} |
|
|
} |
|
|
const arrParams = packingData.map(item => { |
|
|
|
|
|
|
|
|
const arrParams = this.packingData.map(item => { |
|
|
const json = {} |
|
|
const json = {} |
|
|
json.archivesId = item.id |
|
|
json.archivesId = item.id |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
|
if (this.caseData.selectedCategory.isType === 5) { |
|
@ -262,8 +296,7 @@ export default { |
|
|
json.categoryId = jnCategoryId |
|
|
json.categoryId = jnCategoryId |
|
|
return json |
|
|
return json |
|
|
}) |
|
|
}) |
|
|
console.log(arrParams) |
|
|
|
|
|
this.FetchCartioning(arrParams) |
|
|
|
|
|
|
|
|
await this.FetchCartioning(arrParams) |
|
|
}, |
|
|
}, |
|
|
FetchCartioning(arrParams) { |
|
|
FetchCartioning(arrParams) { |
|
|
FetchCartoning(arrParams).then(res => { |
|
|
FetchCartoning(arrParams).then(res => { |
|
@ -271,7 +304,7 @@ export default { |
|
|
this.packingVisible = false |
|
|
this.packingVisible = false |
|
|
this.crud.refresh() |
|
|
this.crud.refresh() |
|
|
this.tableData = [] |
|
|
this.tableData = [] |
|
|
this.caseQuery[this.inputSelect] = [] |
|
|
|
|
|
|
|
|
this.caseQuery[this.inputSelect] = '' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 分卷装盒 |
|
|
// 分卷装盒 |
|
|