移交申请

This commit is contained in:
cwchen 2025-09-19 16:06:03 +08:00
parent 81bfd4d250
commit bb37ed499a
4 changed files with 54 additions and 24 deletions

View File

@ -28,9 +28,9 @@ export function editTransferApplyApi(data) {
} }
// 档案移交申请详情 // 档案移交申请详情
export function getTransferApplyApi(params) { export function getTransferApplyFilesByApplyIdApi(params) {
return request({ return request({
url: '/smartArchives/transferApply/getTransferApply', url: '/smartArchives/transferApply/getTransferApplyFilesByApplyId',
method: 'GET', method: 'GET',
params: params params: params
}) })

View File

@ -33,24 +33,24 @@
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="projectName" label="项目名称" min-width="150"> <el-table-column prop="proName" label="项目名称" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.projectName }} {{ scope.row.proName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="singleProjectName" label="单项工程名称" min-width="150"> <el-table-column prop="singleProName" label="单项工程名称" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.singleProjectName || '--' }} {{ scope.row.singleProName || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="applicant" label="申请人" min-width="100"> <el-table-column prop="createUserName" label="申请人" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.applicant || '' }} {{ scope.row.createUserName || '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="applicationTime" label="申请时间" min-width="120"> <el-table-column prop="createTime" label="申请时间" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.applicationTime || '' }} {{ scope.row.createTime || '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="archiveName" label="档案名称" min-width="300"> <el-table-column prop="archiveName" label="档案名称" min-width="300">
@ -85,16 +85,18 @@
<script> <script>
import { decryptWithSM4 } from '@/utils/sm' import { decryptWithSM4 } from '@/utils/sm'
import {
getTransferApplyFilesByApplyIdApi
} from '@/api/filesTransfer/apply'
export default { export default {
name: 'DetailData', name: 'DetailData',
data() { data() {
return { return {
id: decryptWithSM4(this.$route.query.id), id: decryptWithSM4(this.$route.query.id),
viewStatus: decryptWithSM4(this.$route.query.viewStatus), viewStatus: decryptWithSM4(this.$route.query.viewStatus),
status: 'approving', // approving, approved, rejected status: decryptWithSM4(this.$route.query.auditStatus), // approving, approved, rejected
projectName: 'XXXXXXXXXXXXX工程', projectName: '',
receivingOrg: '省公司办公室', receivingOrg: '',
approvalComment: '', // approvalComment: '', //
fileList: [ fileList: [
{ {
@ -176,6 +178,25 @@ export default {
const obj = { path: "/archivesManagement/filesTransfer/apply" } const obj = { path: "/archivesManagement/filesTransfer/apply" }
this.$tab.closeOpenPage(obj) this.$tab.closeOpenPage(obj)
}, },
async getTransferApplyData() {
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 newFile = {
proName: item.projectName,
singleProName: item.singleProjectName,
createUserName: item.createUserName,
createTime: item.createTime,
archiveName: item?.parParentName + '/' + item?.parentName + '/' + item?.fileName,
}
this.fileList.push(newFile);
})
}
},
handleApprove() { handleApprove() {
if (!this.approvalComment.trim()) { if (!this.approvalComment.trim()) {
this.$message.warning('请填写审批意见') this.$message.warning('请填写审批意见')

View File

@ -8,10 +8,6 @@
@click="handleAdd"> @click="handleAdd">
新增 新增
</el-button> </el-button>
<el-button plain size="mini" type="success" icon="el-icon-warning-outline" v-hasPermi="['transfer:apply:query']"
@click="handleDetail()">
详情
</el-button>
</template> </template>
<template slot="auditStatus" slot-scope="{ data }"> <template slot="auditStatus" slot-scope="{ data }">
<el-tag size="mini" :type="getStatusType(data.auditStatus)"> <el-tag size="mini" :type="getStatusType(data.auditStatus)">
@ -107,8 +103,9 @@ export default {
this.$router.push({ this.$router.push({
name: 'DetailData', name: 'DetailData',
query: { query: {
id: encryptWithSM4('1'), id: encryptWithSM4(row.id ?? '0'),
viewStatus: encryptWithSM4('detail'), viewStatus: encryptWithSM4('detail'),
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
} }
}) })
}, },
@ -164,7 +161,19 @@ export default {
default: default:
return 'info' return 'info'
} }
} },
getStatusText2(status) {
switch (status) {
case '0':
return 'approving'
case '1':
return 'approved'
case '2':
return 'rejected'
default:
return 'approving'
}
},
}, },
} }
</script> </script>

View File

@ -72,7 +72,7 @@ import {
editTransferApplyApi, editTransferApplyApi,
getProSelectApi, getProSelectApi,
getTransferApplyFilesApi, getTransferApplyFilesApi,
getTransferApplyApi getTransferApplyFilesByApplyIdApi
} from '@/api/filesTransfer/apply' } from '@/api/filesTransfer/apply'
import { getDeptSelectApi } from '@/api/select' import { getDeptSelectApi } from '@/api/select'
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
@ -133,9 +133,9 @@ export default {
await getProSelectApi().then(res => { await getProSelectApi().then(res => {
this.proList = res.data; this.proList = res.data;
}); });
const res = await getTransferApplyApi({ id: this.rowData.id }); const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id });
if (Array.isArray(res.data.transferFileDtos) && res.data.transferFileDtos.length > 0) { if (Array.isArray(res.data) && res.data.length > 0) {
res.data.transferFileDtos.map(item => { res.data.map(item => {
const newFile = { const newFile = {
proFilesContentsId: item.id, proFilesContentsId: item.id,
parParentName: item.parParentName, parParentName: item.parParentName,