|
|
@ -91,6 +91,7 @@ export const archivesCrud = { |
|
|
|
this.categoryId = this.selectedCategory.id |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.getTableDisplayFieldsLoading = true |
|
|
|
this.selections = [] |
|
|
|
FetchTableDisplayFields({ categoryId: this.categoryId }).then(data => { |
|
|
@ -122,75 +123,77 @@ export const archivesCrud = { |
|
|
|
this.parentsId = null |
|
|
|
} |
|
|
|
} |
|
|
|
this.selections = [] |
|
|
|
this.page.page = isNaN(page - 1) ? 0 : page - 1 |
|
|
|
this.formVisible = false |
|
|
|
this.getTableDisplayFieldsLoading = true |
|
|
|
const params = { |
|
|
|
'categoryId': this.categoryId, |
|
|
|
'parentsId': this.parentsId, |
|
|
|
'isdel': this.recycleMain.isdel, |
|
|
|
'page': this.page.page, |
|
|
|
'size': this.page.size, |
|
|
|
'sort': this.arrySort, |
|
|
|
'queryType': this.query.queryType, |
|
|
|
'queryTitle': this.query.queryTitle, |
|
|
|
'itemNo': this.query.itemNo, |
|
|
|
'archiveCtgNo': this.query.archiveCtgNo, |
|
|
|
'responsibleby': this.query.responsibleby, |
|
|
|
'archiveNo': this.query.archiveNo, |
|
|
|
'archiveYear': this.smartQuery.archiveYear, |
|
|
|
'department': this.smartQuery.department, |
|
|
|
'retention': this.smartQuery.retention, |
|
|
|
'securityClass': this.smartQuery.securityClass, |
|
|
|
'organizationMatter': this.smartQuery.organizationMatter |
|
|
|
} |
|
|
|
FetchInitArchivesView(params).then(data => { |
|
|
|
this.getTableDisplayFieldsLoading = false |
|
|
|
if (data) { |
|
|
|
this[name] = data.list.content |
|
|
|
this.yearGroup = data.yearGroup |
|
|
|
this.page.total = data.list.totalElements |
|
|
|
if (this.categoryId !== null) { // 防止项目下无案卷门类情况
|
|
|
|
this.selections = [] |
|
|
|
this.page.page = isNaN(page - 1) ? 0 : page - 1 |
|
|
|
this.formVisible = false |
|
|
|
this.getTableDisplayFieldsLoading = true |
|
|
|
const params = { |
|
|
|
'categoryId': this.categoryId, |
|
|
|
'parentsId': this.parentsId, |
|
|
|
'isdel': this.recycleMain.isdel, |
|
|
|
'page': this.page.page, |
|
|
|
'size': this.page.size, |
|
|
|
'sort': this.arrySort, |
|
|
|
'queryType': this.query.queryType, |
|
|
|
'queryTitle': this.query.queryTitle, |
|
|
|
'itemNo': this.query.itemNo, |
|
|
|
'archiveCtgNo': this.query.archiveCtgNo, |
|
|
|
'responsibleby': this.query.responsibleby, |
|
|
|
'archiveNo': this.query.archiveNo, |
|
|
|
'archiveYear': this.smartQuery.archiveYear, |
|
|
|
'department': this.smartQuery.department, |
|
|
|
'retention': this.smartQuery.retention, |
|
|
|
'securityClass': this.smartQuery.securityClass, |
|
|
|
'organizationMatter': this.smartQuery.organizationMatter |
|
|
|
} |
|
|
|
FetchInitArchivesView(params).then(data => { |
|
|
|
this.getTableDisplayFieldsLoading = false |
|
|
|
if (data) { |
|
|
|
this[name] = data.list.content |
|
|
|
this.yearGroup = data.yearGroup |
|
|
|
this.page.total = data.list.totalElements |
|
|
|
|
|
|
|
if (name === 'anjuanData' || name === 'junneiData') { |
|
|
|
this[name].forEach((item, index) => { |
|
|
|
if (name === 'anjuanData' || name === 'junneiData') { |
|
|
|
this[name].forEach((item, index) => { |
|
|
|
// 入库状态
|
|
|
|
if (item.is_storage === 0) { |
|
|
|
this.storageTxt[index] = '未入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
if (item.is_storage === 0) { |
|
|
|
this.storageTxt[index] = '未入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
} |
|
|
|
} else if (item.is_storage === 1) { |
|
|
|
this.storageTxt[index] = '待入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
} |
|
|
|
} else if (item.is_storage === 2) { |
|
|
|
this.storageTxt[index] = '已入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '在库' |
|
|
|
} |
|
|
|
} else if (item.is_storage === 3) { |
|
|
|
this.storageTxt[index] = '待出' |
|
|
|
} else if (item.is_storage === '') { |
|
|
|
this.storageTxt[index] = '未入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (item.is_storage === 1) { |
|
|
|
this.storageTxt[index] = '待入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
} |
|
|
|
} else if (item.is_storage === 2) { |
|
|
|
this.storageTxt[index] = '已入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '在库' |
|
|
|
} |
|
|
|
} else if (item.is_storage === 3) { |
|
|
|
this.storageTxt[index] = '待出' |
|
|
|
} else if (item.is_storage === '') { |
|
|
|
this.storageTxt[index] = '未入' |
|
|
|
if (item.is_borrow === '') { |
|
|
|
this.borrowTxt[index] = '-' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 借阅状态
|
|
|
|
if (item.is_borrow === 1) { |
|
|
|
this.borrowTxt[index] = '待借' |
|
|
|
} else if (item.is_borrow === 2) { |
|
|
|
this.borrowTxt[index] = '待借' |
|
|
|
} else if (item.is_borrow === 3) { |
|
|
|
this.borrowTxt[index] = '已借' |
|
|
|
} |
|
|
|
}) |
|
|
|
// 借阅状态
|
|
|
|
if (item.is_borrow === 1) { |
|
|
|
this.borrowTxt[index] = '待借' |
|
|
|
} else if (item.is_borrow === 2) { |
|
|
|
this.borrowTxt[index] = '待借' |
|
|
|
} else if (item.is_borrow === 3) { |
|
|
|
this.borrowTxt[index] = '已借' |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 著录界面-form/详情-api
|
|
|
|
handleForm(type, title) { |
|
|
|