移交申请
This commit is contained in:
parent
bb37ed499a
commit
7323f87ca0
|
|
@ -28,6 +28,15 @@ export function editTransferApplyApi(data) {
|
|||
}
|
||||
|
||||
// 档案移交申请详情
|
||||
export function getTransferApplyApi(params) {
|
||||
return request({
|
||||
url: '/smartArchives/transferApply/getTransferApply',
|
||||
method: 'GET',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
// 档案移交申请-列表详情
|
||||
export function getTransferApplyFilesByApplyIdApi(params) {
|
||||
return request({
|
||||
url: '/smartArchives/transferApply/getTransferApplyFilesByApplyId',
|
||||
|
|
|
|||
|
|
@ -86,7 +86,8 @@
|
|||
<script>
|
||||
import { decryptWithSM4 } from '@/utils/sm'
|
||||
import {
|
||||
getTransferApplyFilesByApplyIdApi
|
||||
getTransferApplyFilesByApplyIdApi,
|
||||
getTransferApplyApi
|
||||
} from '@/api/filesTransfer/apply'
|
||||
export default {
|
||||
name: 'DetailData',
|
||||
|
|
@ -173,21 +174,25 @@ export default {
|
|||
// 恢复页面滚动
|
||||
document.body.style.overflow = 'auto';
|
||||
},
|
||||
created(){
|
||||
this.initData();
|
||||
},
|
||||
methods: {
|
||||
handleClose() {
|
||||
const obj = { path: "/archivesManagement/filesTransfer/apply" }
|
||||
this.$tab.closeOpenPage(obj)
|
||||
},
|
||||
async getTransferApplyData() {
|
||||
async initData() {
|
||||
this.fileList = [];
|
||||
const res = await getTransferApplyFilesByApplyIdApi({ id: this.id });
|
||||
// this.projectName = res?.data?.proName || '/';
|
||||
// this.receivingOrg = res?.data?.deptName || '/';
|
||||
if (Array.isArray(res.data.transferFileDtos) && res.data.transferFileDtos.length > 0) {
|
||||
res.data.transferFileDtos.map(item => {
|
||||
const res2 = await getTransferApplyApi({ id: this.id });
|
||||
this.projectName = res2?.data?.proName || '/';
|
||||
this.receivingOrg = res2?.data?.deptName || '/';
|
||||
if (Array.isArray(res.data) && res.data.length > 0) {
|
||||
res.data.map(item => {
|
||||
const newFile = {
|
||||
proName: item.projectName,
|
||||
singleProName: item.singleProjectName,
|
||||
proName: item.proName,
|
||||
singleProName: item.singleProName,
|
||||
createUserName: item.createUserName,
|
||||
createTime: item.createTime,
|
||||
archiveName: item?.parParentName + '/' + item?.parentName + '/' + item?.fileName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue