所有审核页面去除字段
This commit is contained in:
parent
bb693e384a
commit
17c0d69623
|
|
@ -26,11 +26,13 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="采购申请编号">
|
||||
<el-input v-model="detailsInfo.applyCode" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!--
|
||||
<el-col :span="8">
|
||||
<el-form-item label="采购申请编号">
|
||||
<el-input v-model="detailsInfo.applyCode" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
-->
|
||||
<el-col :span="8">
|
||||
<el-form-item label="标准配置">
|
||||
<el-input v-model="detailsInfo.leaseUnit" />
|
||||
|
|
@ -41,15 +43,15 @@
|
|||
<el-input v-model="detailsInfo.phone" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="类型规格">
|
||||
<el-input v-model="detailsInfo.maTypeNames" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<!-- <el-row></el-row> -->
|
||||
</el-form>
|
||||
|
||||
<TitleTip :title="`明细信息`" />
|
||||
|
|
@ -151,7 +153,7 @@ export default {
|
|||
leaseId: '', // 外键id
|
||||
taskCode: '', // 任务编码
|
||||
unitName: '', // 单位名称
|
||||
projectName: '', // 项目名称
|
||||
projectName: '' // 项目名称
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -172,7 +174,9 @@ export default {
|
|||
async onHandleAuditing(type) {
|
||||
// 组装参数
|
||||
// 1. 先找出当前用户有权限的所有节点
|
||||
const userAuthorizedNodes = this.auditingList.filter(e => e.configValues && e.configValues.includes(this.userId));
|
||||
const userAuthorizedNodes = this.auditingList.filter(
|
||||
e => e.configValues && e.configValues.includes(this.userId)
|
||||
)
|
||||
|
||||
if (userAuthorizedNodes.length === 0) {
|
||||
this.$modal.msgError('未查询到您的审核权限!')
|
||||
|
|
@ -181,16 +185,16 @@ export default {
|
|||
|
||||
// 2. 根据当前节点状态找出应该审核的节点
|
||||
// 优先找待审核的节点(isAccept === 0)
|
||||
let currentNode = userAuthorizedNodes.find(node => node.isAccept === 0);
|
||||
let currentNode = userAuthorizedNodes.find(node => node.isAccept === 0)
|
||||
|
||||
// 如果没有待审核的节点,则使用第一个有权限的节点
|
||||
if (!currentNode) {
|
||||
currentNode = userAuthorizedNodes[0];
|
||||
currentNode = userAuthorizedNodes[0]
|
||||
}
|
||||
|
||||
console.log('当前审核节点:', currentNode);
|
||||
console.log('当前审核节点:', currentNode)
|
||||
|
||||
const { recordId, id, typeId, isAccept } = currentNode;
|
||||
const { recordId, id, typeId, isAccept } = currentNode
|
||||
|
||||
// if (isAccept != 0) {
|
||||
// this.$modal.msgError('当前已审核,不可重复审核')
|
||||
|
|
@ -201,9 +205,9 @@ export default {
|
|||
typeId,
|
||||
recordId,
|
||||
nodeId: id
|
||||
});
|
||||
})
|
||||
|
||||
this.auditingParams.isAccept = type;
|
||||
this.auditingParams.isAccept = type
|
||||
|
||||
this.auditingParams.leaseId = this.detailsInfo.id
|
||||
|
||||
|
|
@ -214,23 +218,23 @@ export default {
|
|||
this.auditingParams.projectName = this.detailsInfo.leaseProject
|
||||
|
||||
// 找出当前节点在审核列表中的索引
|
||||
const currentIndex = this.auditingList.findIndex(e => e.id === id);
|
||||
const currentIndex = this.auditingList.findIndex(e => e.id === id)
|
||||
|
||||
if (currentIndex !== -1 && currentIndex !== this.auditingList.length - 1) {
|
||||
this.auditingParams.nextNodeId = this.auditingList[currentIndex + 1].id;
|
||||
this.auditingParams.nextNodeId = this.auditingList[currentIndex + 1].id
|
||||
}
|
||||
|
||||
console.log('提交的审核参数:', this.auditingParams);
|
||||
console.log('提交的审核参数:', this.auditingParams)
|
||||
|
||||
const res = await submitAuditingApi(this.auditingParams);
|
||||
console.log(res, '提交结果');
|
||||
const res = await submitAuditingApi(this.auditingParams)
|
||||
console.log(res, '提交结果')
|
||||
|
||||
if (res.code === 200) {
|
||||
this.$modal.msgSuccess('审核成功');
|
||||
this.$modal.msgSuccess('审核成功')
|
||||
setTimeout(() => {
|
||||
const obj = { path: '/business-examine/receive-apply' };
|
||||
this.$tab.closeOpenPage(obj);
|
||||
}, 500);
|
||||
const obj = { path: '/business-examine/receive-apply' }
|
||||
this.$tab.closeOpenPage(obj)
|
||||
}, 500)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -246,11 +250,14 @@ export default {
|
|||
|
||||
console.log('审核列表数据:', this.auditingList)
|
||||
console.log('当前用户ID:', this.userId)
|
||||
console.log('审核权限检查:', this.auditingList.map(item => ({
|
||||
nodeName: item.nodeName,
|
||||
configValues: item.configValues,
|
||||
hasPermission: item.configValues && item.configValues.includes(this.userId)
|
||||
})))
|
||||
console.log(
|
||||
'审核权限检查:',
|
||||
this.auditingList.map(item => ({
|
||||
nodeName: item.nodeName,
|
||||
configValues: item.configValues,
|
||||
hasPermission: item.configValues && item.configValues.includes(this.userId)
|
||||
}))
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue