档案移交记录功能
This commit is contained in:
parent
63871adfd6
commit
35b5464371
|
|
@ -107,4 +107,13 @@ export default [
|
|||
title: '申请详情'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: '/archivesManagement/detailData2',
|
||||
name: 'DetailData2',
|
||||
component: () => import('@/views/fileTransfer/components/data-detail.vue'),
|
||||
meta: {
|
||||
title: '移交详情'
|
||||
}
|
||||
},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -181,17 +181,7 @@ const viewFile = (row) => {
|
|||
};
|
||||
|
||||
const handleClose = () => {
|
||||
let path = '';
|
||||
if (viewStatus === 'record') {
|
||||
path = '/archivesManagement/filesTransfer/record';
|
||||
} else {
|
||||
path = '/archivesManagement/filesTransfer/accept';
|
||||
}
|
||||
|
||||
// 模拟 tab 关闭并跳转(根据你的实际逻辑调整)
|
||||
// 如果你使用的是 keep-alive + tab,可能需要调用全局方法
|
||||
// 这里简化为直接返回
|
||||
router.push(path);
|
||||
router.go(-1)
|
||||
};
|
||||
|
||||
const initData = async () => {
|
||||
|
|
@ -204,11 +194,11 @@ const initData = async () => {
|
|||
|
||||
const res = await api({ id, proId });
|
||||
|
||||
projectName.value = res?.data?.proName || '/';
|
||||
receivingOrg.value = res?.data?.deptName || '/';
|
||||
projectName.value = res?.data.data?.proName || '/';
|
||||
receivingOrg.value = res?.data.data?.deptName || '/';
|
||||
|
||||
if (Array.isArray(res.data.transferFileDtos)) {
|
||||
fileList.value = res.data.transferFileDtos.map((item) => ({
|
||||
if (Array.isArray(res.data.data.transferFileDtos)) {
|
||||
fileList.value = res.data.data.transferFileDtos.map((item) => ({
|
||||
id: item.id,
|
||||
proName: item.proName,
|
||||
singleProName: item.singleProName,
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
<!-- 维护弹窗 -->
|
||||
<Maintenance
|
||||
v-if="isMaintenanceVisible"
|
||||
v-model="isMaintenanceVisible"
|
||||
:row-data="maintenanceRow"
|
||||
title="维护"
|
||||
@close-dialog="isMaintenanceVisible = false"
|
||||
|
|
|
|||
|
|
@ -197,6 +197,20 @@ export default {
|
|||
return '未知状态';
|
||||
}
|
||||
},
|
||||
|
||||
getStatusText2(status) {
|
||||
switch (status) {
|
||||
case '0':
|
||||
return 'approving'
|
||||
case '1':
|
||||
return 'approved'
|
||||
case '2':
|
||||
return 'rejected'
|
||||
default:
|
||||
return 'approving'
|
||||
}
|
||||
},
|
||||
|
||||
searchReset() {
|
||||
this.query = {};
|
||||
this.onLoad(this.page);
|
||||
|
|
@ -298,13 +312,13 @@ export default {
|
|||
},
|
||||
|
||||
handleDetail (rowData) {
|
||||
router.push({
|
||||
name: 'DetailData',
|
||||
this.$router.push({
|
||||
name: 'DetailData2',
|
||||
query: {
|
||||
id: rowData.id ?? '0',
|
||||
proId: rowData.proId ?? '0',
|
||||
viewStatus: 'record',
|
||||
auditStatus: getStatusText2(rowData.auditStatus),
|
||||
auditStatus: this.getStatusText2(rowData.auditStatus),
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue