From 81bfd4d250ef2572bc2557b80721b25a65ed5b9b Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Fri, 19 Sep 2025 15:39:03 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=94=B3=E8=AF=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/filesTransfer/apply.js | 9 ++++
.../archivesManagement/fileManager/config.js | 2 +-
src/views/filesTransfer/apply/config.js | 6 +--
src/views/filesTransfer/apply/index.vue | 6 +--
.../filesTransfer/apply/prop/applyForm.vue | 46 +++++++++++++------
5 files changed, 48 insertions(+), 21 deletions(-)
diff --git a/src/api/filesTransfer/apply.js b/src/api/filesTransfer/apply.js
index 5d050fc..7bd0db1 100644
--- a/src/api/filesTransfer/apply.js
+++ b/src/api/filesTransfer/apply.js
@@ -27,6 +27,15 @@ export function editTransferApplyApi(data) {
})
}
+// 档案移交申请详情
+export function getTransferApplyApi(params) {
+ return request({
+ url: '/smartArchives/transferApply/getTransferApply',
+ method: 'GET',
+ params: params
+ })
+}
+
// 删除档案移交申请
export function delTransferApplyApi(data) {
return request({
diff --git a/src/views/archivesManagement/fileManager/config.js b/src/views/archivesManagement/fileManager/config.js
index 4d665c6..6db543a 100644
--- a/src/views/archivesManagement/fileManager/config.js
+++ b/src/views/archivesManagement/fileManager/config.js
@@ -2,7 +2,7 @@ export const formLabel = [
{
isShow: false, // 是否展示label
f_type: 'ipt',
- f_label: '项目名称',
+ f_label: '单项工程名称',
f_model: 'proName',
f_max: 32,
},
diff --git a/src/views/filesTransfer/apply/config.js b/src/views/filesTransfer/apply/config.js
index bab5cee..ed597c9 100644
--- a/src/views/filesTransfer/apply/config.js
+++ b/src/views/filesTransfer/apply/config.js
@@ -2,7 +2,7 @@ export const formLabel = [
{
isShow: false, // 是否展示label
f_type: 'ipt',
- f_label: '项目名称',
+ f_label: '单项工程名称',
f_model: 'proName',
f_max: 32,
},
@@ -27,7 +27,7 @@ export const formLabel = [
export const columnsList = [
{ t_props: 'proName', t_label: '项目名称' },
{ t_props: 'singleProName', t_label: '单项工程名称' },
- { t_props: 'applyUser', t_label: '申请人' },
- { t_props: 'applyTime', t_label: '申请时间' },
+ { t_props: 'createUserName', t_label: '申请人' },
+ { t_props: 'createTime', t_label: '申请时间' },
{ t_slot: 'auditStatus', t_label: '审批状态' },
]
\ No newline at end of file
diff --git a/src/views/filesTransfer/apply/index.vue b/src/views/filesTransfer/apply/index.vue
index cf46671..04f9a17 100644
--- a/src/views/filesTransfer/apply/index.vue
+++ b/src/views/filesTransfer/apply/index.vue
@@ -14,14 +14,14 @@
-
- {{ getStatusText(data.fileStatus) }}
+
+ {{ getStatusText(data.auditStatus) }}
+ @click="handleUpdate(data)">
修改
-
+
@@ -70,7 +71,8 @@ import {
saveTransferApplyApi,
editTransferApplyApi,
getProSelectApi,
- getTransferApplyFilesApi
+ getTransferApplyFilesApi,
+ getTransferApplyApi
} from '@/api/filesTransfer/apply'
import { getDeptSelectApi } from '@/api/select'
import Treeselect from "@riophae/vue-treeselect";
@@ -131,6 +133,22 @@ export default {
await getProSelectApi().then(res => {
this.proList = res.data;
});
+ const res = await getTransferApplyApi({ id: this.rowData.id });
+ if (Array.isArray(res.data.transferFileDtos) && res.data.transferFileDtos.length > 0) {
+ res.data.transferFileDtos.map(item => {
+ const newFile = {
+ proFilesContentsId: item.id,
+ parParentName: item.parParentName,
+ parentName: item.parentName,
+ fileName: item.fileName,
+ proId: item.proId,
+ fileSourceId: item.fileId,
+ filePath: item.filePath
+ };
+ this.checkTreeData.push(newFile);
+ })
+ }
+
if (this.isAdd === 'edit' && this.rowData) {
// 编辑模式:填充表单数据
this.form = {
@@ -146,7 +164,7 @@ export default {
};
}
},
- handleProChange(value){
+ handleProChange(value) {
console.log(value);
this.checkTreeData = [];
},
@@ -217,7 +235,7 @@ export default {
params.deptName = obj?.label || '';
params.transferFileDtos = this.checkTreeData;
console.log(params);
-
+
if (this.isAdd === 'add') {
saveTransferApplyApi(params).then(res => {
this.loading.close();
@@ -269,19 +287,19 @@ export default {
})
},
findNodeById(nodes, id) {
- for (const node of nodes) {
- if (node.id === id) return node;
- if (node.children) {
- const found = this.findNodeById(node.children, id);
- if (found) return found;
+ for (const node of nodes) {
+ if (node.id === id) return node;
+ if (node.children) {
+ const found = this.findNodeById(node.children, id);
+ if (found) return found;
+ }
}
- }
- return null;
+ return null;
},
// 获取选中的节点
async getTreeData(nodeId) {
this.checkTreeData = [];
- const res = await getTransferApplyFilesApi({ proId:this.form.proId,id:nodeId });
+ const res = await getTransferApplyFilesApi({ proId: this.form.proId, id: nodeId });
if (Array.isArray(res.data) && res.data.length > 0) {
res.data.map(item => {
const newFile = {
@@ -290,8 +308,8 @@ export default {
parentName: item.parentName,
fileName: item.fileName,
proId: item.proId,
- fileSourceId:item.fileId,
- filePath:item.filePath
+ fileSourceId: item.fileId,
+ filePath: item.filePath
};
this.checkTreeData.push(newFile);
})