代码提交

This commit is contained in:
liang.chao 2025-11-07 17:31:45 +08:00
parent 15c64a99d7
commit 9cb1194819
6 changed files with 24 additions and 20 deletions

View File

@ -104,6 +104,7 @@ export default {
name: 'DetailData',
query: {
id: encryptWithSM4(row.id ?? '0'),
proId: encryptWithSM4(row.proId ?? '0'),
viewStatus: encryptWithSM4('detail'),
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
}

View File

@ -143,7 +143,7 @@ export default {
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,proId:this.rowData.proId });
if (Array.isArray(res.data) && res.data.length > 0) {
res.data.map(item => {
const newFile = {

View File

@ -65,6 +65,7 @@ export default {
name: 'DetailData2',
query: {
id: encryptWithSM4(row.id ?? '0'),
proId: encryptWithSM4(row.proId ?? '0'),
viewStatus: encryptWithSM4('audit'),
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
}

View File

@ -123,6 +123,7 @@ export default {
data() {
return {
id: decryptWithSM4(this.$route.query.id),
proId: decryptWithSM4(this.$route.query.proId),
viewStatus: decryptWithSM4(this.$route.query.viewStatus),
status: decryptWithSM4(this.$route.query.auditStatus), // approving, approved, rejected
projectName: '',
@ -202,10 +203,9 @@ export default {
},
async initData() {
this.fileList = [];
const res = this.viewStatus === 'audit' ? await getTransferAudieFilesByApplyIdApi({ id: this.id,proId: this.proId }) : await getTransferApplyFilesByApplyIdApi({ id: this.id, proId: this.proId });
const res = this.viewStatus === 'audit' ? await getTransferAudieFilesByApplyIdApi({ id: this.id }) : await getTransferApplyFilesByApplyIdApi({ id: this.id });
const res2 = this.viewStatus === 'audit' ? await getTransferAuditApi({ id: this.id }) : await getTransferApplyApi({ id: this.id });
const res2 = this.viewStatus === 'audit' ? await getTransferAuditApi({ id: this.id,proId: this.proId }) : await getTransferApplyApi({ id: this.id, proId: this.proId });
this.projectName = res2?.data?.proName || '/';
this.receivingOrg = res2?.data?.deptName || '/';
//

View File

@ -125,6 +125,7 @@ export default {
data() {
return {
id: decryptWithSM4(this.$route.query.id),
proId: decryptWithSM4(this.$route.query.proId),
viewStatus: decryptWithSM4(this.$route.query.viewStatus),
projectName: '',
receivingOrg: '',
@ -173,7 +174,7 @@ export default {
async initData() {
this.fileList = [];
const res = this.viewStatus === 'accept' ? await getTransferReceiceDetailApi({ id: this.id }) : await getTransferRecordDetailApi({ id: this.id });
const res = this.viewStatus === 'accept' ? await getTransferReceiceDetailApi({ id: this.id, proId: this.proId }) : await getTransferRecordDetailApi({ id: this.id, proId: this.proId });
this.projectName = res?.data?.proName || '/';
this.receivingOrg = res?.data?.deptName || '/';

View File

@ -95,6 +95,7 @@ export default {
name: 'RecordDetail',
query: {
id: encryptWithSM4(row.id ?? '0'),
proId: encryptWithSM4(row.proId ?? '0'),
viewStatus: encryptWithSM4('record'),
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
}