|
|
|
@ -8,7 +8,8 @@ |
|
|
|
<!-- tab --> |
|
|
|
<ul class="tab-nav"> |
|
|
|
<li :class="{'active-tab-nav': archivesTabIndex == 0}" @click="changeActiveTab(0)">基本信息</li> |
|
|
|
<li v-if="!isShelfRecord" :class="{'active-tab-nav': archivesTabIndex == 1}" @click="changeActiveTab(1)">上/下架记录</li> |
|
|
|
<!-- v-if="!isShelfRecord" --> |
|
|
|
<li :class="{'active-tab-nav': archivesTabIndex == 1}" @click="changeActiveTab(1)">上/下架记录</li> |
|
|
|
<li :class="{'active-tab-nav': archivesTabIndex == 2}" @click="changeActiveTab(2)">传阅记录</li> |
|
|
|
<li :class="{'active-tab-nav': archivesTabIndex == 3}" @click="changeActiveTab(3)">操作记录</li> |
|
|
|
</ul> |
|
|
|
@ -144,25 +145,39 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 上下架记录 --> |
|
|
|
<div v-if="archivesTabIndex==1 && !isShelfRecord" class="item-content"> |
|
|
|
<!-- v-if="archivesTabIndex==1 && !isShelfRecord" --> |
|
|
|
<div v-if="archivesTabIndex==1" class="item-content"> |
|
|
|
<el-table class="archives-table" :data="onOffTableData" style="min-width: 100%; " height="calc(100vh - 280px)"> |
|
|
|
<el-table-column prop="operateType" label="操作类型" min-width="60" align="center"> |
|
|
|
<el-table-column prop="operationType" label="操作类型" min-width="60" align="center"> |
|
|
|
<!-- <template slot-scope="scope"> |
|
|
|
<span class="row-state row-packing state-active">{{ scope.row.operationType }}</span> |
|
|
|
</el-table-column></el-table></div></div></div></el-dialog></div></template> --> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- getOperateTypeText(scope.row.operateType) --> |
|
|
|
<span class="row-state row-packing state-active">{{ scope.row.operateType }}</span> |
|
|
|
<div> |
|
|
|
<!-- <span v-if="scope.row.operationType === 1" class="row-state row-packing state-active">上架</span> |
|
|
|
<span v-if="scope.row.operationType === 2" class="row-state row-packing state-active">下架</span> --> |
|
|
|
<el-tag v-if="scope.row.operationType === 1" type="success">上架</el-tag> |
|
|
|
<el-tag v-if="scope.row.operationType === 2" type="danger">下架</el-tag> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createBy" label="操作格位" min-width="100" /> |
|
|
|
<el-table-column prop="createBy" label="公文登记号" min-width="100" /> |
|
|
|
<el-table-column prop="details_type" label="文件类型" min-width="85"> |
|
|
|
<el-table-column prop="cabinetId" label="操作格位" min-width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag v-if="scope.row.details_type === 1">原件</el-tag> |
|
|
|
<div> |
|
|
|
{{ [scope.row.cabinetId ? String(scope.row.cabinetId).padStart(2, '0') : '', scope.row.borrowName].filter(v => v).join('_') || '-' }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="regNo" label="公文登记号" min-width="100" /> |
|
|
|
<el-table-column prop="detailsType" label="文件类型" min-width="85"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag v-if="scope.row.detailsType === 1">原件</el-tag> |
|
|
|
<el-tag v-else>复印件</el-tag> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="createTime" label="操作时间" width="180"> |
|
|
|
<el-table-column prop="operationTime" label="操作时间" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ scope.row.createTime | parseTime }}</div> |
|
|
|
<div>{{ scope.row.operationTime | parseTime }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -322,7 +337,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
// import { crud } from '@crud/crud' |
|
|
|
import { FetchArchivesDetails, FetchInitDocumentDetailsList, FetchAddDocumentDetails, FetchDeleteDocumentDetails, FetchInitDistributorAllByDocumentId, FetchInitOperate, FetchReadGW, FetchBingdingLabel, FetchUnbindTag, FetchArchivesDetailsBorrowLog, FetchLend, FetchBorrowerdsByIds } from '@/api/system/documentArchives' |
|
|
|
import { FetchArchivesDetails, FetchInitDocumentDetailsList, FetchAddDocumentDetails, FetchDeleteDocumentDetails, FetchInitDistributorAllByDocumentId, FetchInitOperate, FetchReadGW, FetchBingdingLabel, FetchUnbindTag, FetchArchivesDetailsBorrowLog, FetchLend, FetchBorrowerdsByIds, FetchDocumentShelfOperationLog } from '@/api/system/documentArchives' |
|
|
|
import { FetchInitBorrowerListOrderNo } from '@/api/system/borrower' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
|
|
|
|
@ -497,7 +512,7 @@ export default { |
|
|
|
// this.currentArchivesId = this.parentInfo.id |
|
|
|
let documentId |
|
|
|
if (this.pageType && (this.pageType === 'search' || this.pageType === 'miodRecord')) { |
|
|
|
documentId = this.parentInfo.document_id |
|
|
|
documentId = this.parentInfo.document_id || this.parentInfo.documentId |
|
|
|
} else { |
|
|
|
documentId = this.selectedDocument.isType === 2 |
|
|
|
? this.selectedDocument.id |
|
|
|
@ -508,8 +523,8 @@ export default { |
|
|
|
documentId, |
|
|
|
archivesId: this.pageType && this.pageType === 'miodRecord' |
|
|
|
? this.parentInfo.details_type === 1 |
|
|
|
? this.parentInfo.archives_id |
|
|
|
: this.parentInfo.parents_id |
|
|
|
? (this.parentInfo.archives_id || this.parentInfo.archivesId) |
|
|
|
: (this.parentInfo.parents_id || this.parentInfo.parentsId) |
|
|
|
: this.parentInfo.id |
|
|
|
} |
|
|
|
const distributorParams = { |
|
|
|
@ -527,7 +542,7 @@ export default { |
|
|
|
const hostDepartmentItem = this.archivesDetailsData.find( |
|
|
|
item => item.fieldName === 'host_department' |
|
|
|
) |
|
|
|
// console.log('hostDepartmentItem', hostDepartmentItem) |
|
|
|
console.log('hostDepartmentItem', hostDepartmentItem) |
|
|
|
if (hostDepartmentItem) { |
|
|
|
const hostParams = { |
|
|
|
'search': hostDepartmentItem.context |
|
|
|
@ -563,7 +578,7 @@ export default { |
|
|
|
|
|
|
|
let documentId |
|
|
|
if (this.pageType && (this.pageType === 'search' || this.pageType === 'miodRecord')) { |
|
|
|
documentId = this.parentInfo.document_id |
|
|
|
documentId = this.parentInfo.document_id || this.parentInfo.documentId |
|
|
|
} else { |
|
|
|
documentId = this.selectedDocument.isType === 2 |
|
|
|
? this.selectedDocument.id |
|
|
|
@ -574,8 +589,8 @@ export default { |
|
|
|
documentId, |
|
|
|
archivesId: this.pageType && this.pageType === 'miodRecord' |
|
|
|
? this.parentInfo.details_type === 1 |
|
|
|
? this.parentInfo.archives_id |
|
|
|
: this.parentInfo.parents_id |
|
|
|
? (this.parentInfo.archives_id || this.parentInfo.archivesId) |
|
|
|
: (this.parentInfo.parents_id || this.parentInfo.parentsId) |
|
|
|
: this.parentInfo.id |
|
|
|
} |
|
|
|
|
|
|
|
@ -632,7 +647,7 @@ export default { |
|
|
|
getArchivesDetailsBorrowLog() { |
|
|
|
let documentId |
|
|
|
if (this.pageType && (this.pageType === 'search' || this.pageType === 'miodRecord')) { |
|
|
|
documentId = this.parentInfo.document_id |
|
|
|
documentId = this.parentInfo.document_id || this.parentInfo.documentId |
|
|
|
} else { |
|
|
|
documentId = this.selectedDocument.isType === 2 |
|
|
|
? this.selectedDocument.id |
|
|
|
@ -642,8 +657,8 @@ export default { |
|
|
|
documentId: documentId, |
|
|
|
archivesId: this.pageType && this.pageType === 'miodRecord' |
|
|
|
? this.parentInfo.details_type === 1 |
|
|
|
? this.parentInfo.archives_id |
|
|
|
: this.parentInfo.parents_id |
|
|
|
? (this.parentInfo.archives_id || this.parentInfo.archivesId) |
|
|
|
: (this.parentInfo.parents_id || this.parentInfo.parentsId) |
|
|
|
: this.parentInfo.id, |
|
|
|
page: this.pageBorrow.page, |
|
|
|
size: this.pageBorrow.size |
|
|
|
@ -660,7 +675,7 @@ export default { |
|
|
|
getInitOperate() { |
|
|
|
let documentId |
|
|
|
if (this.pageType && (this.pageType === 'search' || this.pageType === 'miodRecord')) { |
|
|
|
documentId = this.parentInfo.document_id |
|
|
|
documentId = this.parentInfo.document_id || this.parentInfo.documentId |
|
|
|
} else { |
|
|
|
documentId = this.selectedDocument.isType === 2 |
|
|
|
? this.selectedDocument.id |
|
|
|
@ -670,8 +685,8 @@ export default { |
|
|
|
documentId: documentId, |
|
|
|
archivesId: this.pageType && this.pageType === 'miodRecord' |
|
|
|
? this.parentInfo.details_type === 1 |
|
|
|
? this.parentInfo.archives_id |
|
|
|
: this.parentInfo.parents_id |
|
|
|
? (this.parentInfo.archives_id || this.parentInfo.archivesId) |
|
|
|
: (this.parentInfo.parents_id || this.parentInfo.parentsId) |
|
|
|
: this.parentInfo.id, |
|
|
|
page: this.page.page, |
|
|
|
size: this.page.size |
|
|
|
@ -955,7 +970,24 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
getInitShelfOperate() { |
|
|
|
console.log('上下架记录') |
|
|
|
console.log('this.pageType', this.pageType) |
|
|
|
console.log('this.parentInfo', this.parentInfo) |
|
|
|
const params = { |
|
|
|
archivesId: this.pageType && this.pageType === 'miodRecord' |
|
|
|
? this.parentInfo.details_type === 1 |
|
|
|
? (this.parentInfo.archives_id || this.parentInfo.archivesId) |
|
|
|
: (this.parentInfo.parents_id || this.parentInfo.parentsId) |
|
|
|
: this.parentInfo.id, |
|
|
|
page: this.pageShelf.page, |
|
|
|
size: this.pageShelf.size |
|
|
|
} |
|
|
|
FetchDocumentShelfOperationLog(params).then(data => { |
|
|
|
console.log('data', data) |
|
|
|
this.onOffTableData = data.content |
|
|
|
this.pageShelf.total = data.totalElements |
|
|
|
}).catch(error => { |
|
|
|
this.$message({ message: error, type: 'error', offset: 8 }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleDeptsSizeChange(size) { |
|
|
|
this.pageDepts.size = size |
|
|
|
|