移交申请

This commit is contained in:
cwchen 2025-09-19 18:23:07 +08:00
parent 362ea8f89b
commit 172a177cc5
1 changed files with 17 additions and 15 deletions

View File

@ -133,6 +133,15 @@ export default {
await getProSelectApi().then(res => { await getProSelectApi().then(res => {
this.proList = res.data; this.proList = res.data;
}); });
if (this.isAdd === 'edit' && this.rowData) {
//
this.form = {
id: this.rowData.id || null,
proId: this.rowData.proId || undefined,
deptId: this.rowData.deptId || undefined,
};
const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id }); const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id });
if (Array.isArray(res.data) && res.data.length > 0) { if (Array.isArray(res.data) && res.data.length > 0) {
res.data.map(item => { res.data.map(item => {
@ -148,14 +157,6 @@ export default {
this.checkTreeData.push(newFile); this.checkTreeData.push(newFile);
}) })
} }
if (this.isAdd === 'edit' && this.rowData) {
//
this.form = {
id: this.rowData.id || null,
proId: this.rowData.proId || undefined,
deptId: this.rowData.deptId || undefined,
};
} else { } else {
// //
this.form = { this.form = {
@ -208,6 +209,7 @@ export default {
deptId: undefined deptId: undefined
}; };
this.resetForm("ruleForm"); this.resetForm("ruleForm");
this.checkTreeData = [];
}, },
handleReuslt(res) { handleReuslt(res) {
this.$modal.msgSuccess(res.msg); this.$modal.msgSuccess(res.msg);