移交申请
This commit is contained in:
parent
362ea8f89b
commit
172a177cc5
|
|
@ -133,21 +133,7 @@ export default {
|
||||||
await getProSelectApi().then(res => {
|
await getProSelectApi().then(res => {
|
||||||
this.proList = res.data;
|
this.proList = res.data;
|
||||||
});
|
});
|
||||||
const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id });
|
|
||||||
if (Array.isArray(res.data) && res.data.length > 0) {
|
|
||||||
res.data.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) {
|
if (this.isAdd === 'edit' && this.rowData) {
|
||||||
// 编辑模式:填充表单数据
|
// 编辑模式:填充表单数据
|
||||||
|
|
@ -156,6 +142,21 @@ export default {
|
||||||
proId: this.rowData.proId || undefined,
|
proId: this.rowData.proId || undefined,
|
||||||
deptId: this.rowData.deptId || undefined,
|
deptId: this.rowData.deptId || undefined,
|
||||||
};
|
};
|
||||||
|
const res = await getTransferApplyFilesByApplyIdApi({ id: this.rowData.id });
|
||||||
|
if (Array.isArray(res.data) && res.data.length > 0) {
|
||||||
|
res.data.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);
|
||||||
|
})
|
||||||
|
}
|
||||||
} 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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue