移交接收管理
This commit is contained in:
parent
f702edd915
commit
258e5bc4b6
|
|
@ -218,7 +218,21 @@ export const dynamicRoutes = [
|
|||
path: 'index',
|
||||
component: () => import('@/views/filesTransfer/record/components/data-detail'),
|
||||
name: 'RecordDetail',
|
||||
meta: { title: '详情', activeMenu: '/archivesManagement/filesTransfer/record', noCache: true }
|
||||
meta: { title: '移交详情', activeMenu: '/archivesManagement/filesTransfer/record', noCache: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/archivesManagement/filesTransfer/accept/accept-detail-data',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
permissions: ['transfer:apply:query'],
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
component: () => import('@/views/filesTransfer/record/components/data-detail'),
|
||||
name: 'RecordDetail2',
|
||||
meta: { title: '接收详情', activeMenu: '/archivesManagement/filesTransfer/accept', noCache: true }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,10 +81,10 @@ export default {
|
|||
// 详情
|
||||
handleDetail(row) {
|
||||
this.$router.push({
|
||||
name: 'RecordDetail',
|
||||
name: 'RecordDetail2',
|
||||
query: {
|
||||
id: encryptWithSM4(row.id ?? '0'),
|
||||
viewStatus: encryptWithSM4('detail'),
|
||||
viewStatus: encryptWithSM4('accept'),
|
||||
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ export default {
|
|||
name: 'DetailData',
|
||||
query: {
|
||||
id: encryptWithSM4(row.id ?? '0'),
|
||||
viewStatus: encryptWithSM4('detail'),
|
||||
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -51,10 +51,34 @@
|
|||
<div class="archive-name-cell">{{ scope.row.archiveName }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="archiveName" label="操作" min-width="100" v-if="viewStatus === 'accept'">
|
||||
<template slot-scope="scope">
|
||||
<el-button plain icon="el-icon-check" type="primary" size="mini" @click="handleAccept(scope.row)">确认接收</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 移交接收确认 -->
|
||||
<el-dialog :visible.sync="confirmDialogVisible" :close-on-click-modal="false" :close-on-press-escape="false"
|
||||
:show-close="true" width="450px">
|
||||
<div slot="title" class="dialog-title">
|
||||
<span>操作确认</span>
|
||||
</div>
|
||||
<div class="confirm-content">
|
||||
<div class="confirm-icon">
|
||||
<i class="el-icon-question"></i>
|
||||
</div>
|
||||
<div class="confirm-text">
|
||||
<p class="main-message">移交接收确认?</p>
|
||||
<p class="sub-message">确定该档案已经接收完成吗?</p>
|
||||
</div>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button class="clear-btn" @click="confirmDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" class="search-btn" @click="confirmTransferStatus">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -69,10 +93,11 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
id: decryptWithSM4(this.$route.query.id),
|
||||
viewStatus: decryptWithSM4(this.$route.query.viewStatus),
|
||||
projectName: '',
|
||||
receivingOrg: '',
|
||||
fileList: [],
|
||||
// 审批信息展示
|
||||
confirmDialogVisible: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -89,7 +114,12 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
handleClose() {
|
||||
const obj = { path: "/archivesManagement/filesTransfer/record" }
|
||||
let obj = null;
|
||||
if(this.viewStatus === 'record'){
|
||||
obj = { path: "/archivesManagement/filesTransfer/record" }
|
||||
}else{
|
||||
obj = { path: "/archivesManagement/filesTransfer/accept" }
|
||||
}
|
||||
this.$tab.closeOpenPage(obj)
|
||||
},
|
||||
async initData() {
|
||||
|
|
@ -115,7 +145,37 @@ export default {
|
|||
}
|
||||
|
||||
},
|
||||
|
||||
handleAccept(row) {
|
||||
console.log(row);
|
||||
this.confirmDialogVisible = true;
|
||||
},
|
||||
// 确认完整性状态
|
||||
confirmTransferStatus() {
|
||||
this.closeConfirmDialog();
|
||||
// 调用移交确认接口
|
||||
/* updateIntegrityStatusApi({ proId: this.projectId })
|
||||
.then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success('完整性确认成功');
|
||||
this.closeConfirmDialog();
|
||||
// 可以在这里添加其他逻辑,比如刷新页面或更新状态
|
||||
} else {
|
||||
this.$message.error(res.msg || '完整性确认失败');
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
this.$message.error('完整性确认失败,请重试');
|
||||
console.error('完整性确认失败:', error);
|
||||
}); */
|
||||
},
|
||||
// 关闭确认弹框
|
||||
closeConfirmDialog() {
|
||||
this.confirmDialogVisible = false;
|
||||
/* setTimeout(() => {
|
||||
const obj = { path: "/archivesManagement/fileManager" }
|
||||
this.$tab.closeOpenPage(obj)
|
||||
}, 200); */
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export default {
|
|||
name: 'RecordDetail',
|
||||
query: {
|
||||
id: encryptWithSM4(row.id ?? '0'),
|
||||
viewStatus: encryptWithSM4('detail'),
|
||||
viewStatus: encryptWithSM4('record'),
|
||||
auditStatus: encryptWithSM4(this.getStatusText2(row.auditStatus)),
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue