档案移交记录功能
This commit is contained in:
parent
ad77de4b3c
commit
10f5bb4ba9
|
|
@ -39,6 +39,18 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<template #menu="{ row }">
|
||||||
|
<el-button
|
||||||
|
plain
|
||||||
|
size="small"
|
||||||
|
type="success"
|
||||||
|
@click="handleDetail(row)"
|
||||||
|
>
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
|
|
||||||
|
|
@ -84,11 +96,11 @@ export default {
|
||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
viewBtn: true,
|
addBtn:false,
|
||||||
|
viewBtn: false,
|
||||||
editBtn: false,
|
editBtn: false,
|
||||||
delBtn: false,
|
delBtn: false,
|
||||||
selection: false,
|
selection: false,
|
||||||
addBtn:true,
|
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
|
|
||||||
|
|
@ -268,7 +280,30 @@ export default {
|
||||||
this.recordListRow = row;
|
this.recordListRow = row;
|
||||||
this.recordListJumpType = 'progress';
|
this.recordListJumpType = 'progress';
|
||||||
this.recordListVisible = true;
|
this.recordListVisible = true;
|
||||||
|
},
|
||||||
|
handleDetail (rowData) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'DetailData2',
|
||||||
|
query: {
|
||||||
|
id: rowData.id ?? '0',
|
||||||
|
proId: rowData.proId ?? '0',
|
||||||
|
viewStatus: 'accept',
|
||||||
|
auditStatus: this.getStatusText2(rowData.auditStatus),
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getStatusText2(status) {
|
||||||
|
switch (status) {
|
||||||
|
case '0':
|
||||||
|
return 'approving'
|
||||||
|
case '1':
|
||||||
|
return 'approved'
|
||||||
|
case '2':
|
||||||
|
return 'rejected'
|
||||||
|
default:
|
||||||
|
return 'approving'
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@
|
||||||
plain
|
plain
|
||||||
size="small"
|
size="small"
|
||||||
type="success"
|
type="success"
|
||||||
v-hasPermi="['transfer:apply:query']"
|
|
||||||
@click="handleDetail(row)"
|
@click="handleDetail(row)"
|
||||||
>
|
>
|
||||||
详情
|
详情
|
||||||
|
|
|
||||||
|
|
@ -235,11 +235,11 @@ const confirmTransferStatus = async () => {
|
||||||
|
|
||||||
confirmDialogVisible.value = false;
|
confirmDialogVisible.value = false;
|
||||||
|
|
||||||
if (res.code === 200) {
|
if (res.data.code === 200) {
|
||||||
ElMessage.success(res.msg || '确认接收成功');
|
ElMessage.success(res.data.msg || '确认接收成功');
|
||||||
await refreshData();
|
await refreshData();
|
||||||
} else {
|
} else {
|
||||||
ElMessage.error(res.msg || '确认接收失败');
|
ElMessage.error(res.data.msg || '确认接收失败');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
ElMessage.error('操作失败');
|
ElMessage.error('操作失败');
|
||||||
|
|
@ -251,8 +251,8 @@ const refreshData = async () => {
|
||||||
fileList.value = [];
|
fileList.value = [];
|
||||||
try {
|
try {
|
||||||
const res = await getTransferReceiceDetailApi({ id, proId });
|
const res = await getTransferReceiceDetailApi({ id, proId });
|
||||||
if (Array.isArray(res.data.transferFileDtos)) {
|
if (Array.isArray(res.data.data.transferFileDtos)) {
|
||||||
fileList.value = res.data.transferFileDtos.map((item) => ({
|
fileList.value = res.data.data.transferFileDtos.map((item) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
proName: item.proName,
|
proName: item.proName,
|
||||||
singleProName: item.singleProName,
|
singleProName: item.singleProName,
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ const tableColumns = computed(() => {
|
||||||
{ prop: 'parParentName', label: '所属分类' },
|
{ prop: 'parParentName', label: '所属分类' },
|
||||||
{ prop: 'parentName', label: '所属案卷' },
|
{ prop: 'parentName', label: '所属案卷' },
|
||||||
{ prop: 'fileName', label: '文件名称' },
|
{ prop: 'fileName', label: '文件名称' },
|
||||||
{ prop: 'transferStatus', label: '进度' }
|
{ prop: 'receiveStatus', label: '进度' }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -111,7 +111,7 @@ const initFormData = async () => {
|
||||||
if (Array.isArray(res.data.data)) {
|
if (Array.isArray(res.data.data)) {
|
||||||
tableData.value = res.data.data.map(item => ({
|
tableData.value = res.data.data.map(item => ({
|
||||||
...item,
|
...item,
|
||||||
transferStatus: (item.transferStatus ?? '0') === '0' ? '进行中' : '已完成'
|
receiveStatus: (item.receiveStatus ?? '0') === '0' ? '进行中' : '已完成'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -137,7 +137,7 @@ const transfer = (row) => {
|
||||||
const res = await updateTransferRecordFilesStatusApi({
|
const res = await updateTransferRecordFilesStatusApi({
|
||||||
transferApplyId: props.rowData.id,
|
transferApplyId: props.rowData.id,
|
||||||
id: row.fileId,
|
id: row.fileId,
|
||||||
transferStatus: '1'
|
receiveStatus: '1'
|
||||||
});
|
});
|
||||||
loading.close();
|
loading.close();
|
||||||
if (res.data.code === 200) {
|
if (res.data.code === 200) {
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@
|
||||||
plain
|
plain
|
||||||
size="small"
|
size="small"
|
||||||
type="success"
|
type="success"
|
||||||
v-hasPermi="['transfer:apply:query']"
|
|
||||||
@click="handleDetail(row)"
|
@click="handleDetail(row)"
|
||||||
>
|
>
|
||||||
详情
|
详情
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue