From b33266918c5b93dd868719da895cb43f77c8f919 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Wed, 16 Sep 2026 11:12:06 +0800 Subject: [PATCH] =?UTF-8?q?2026-09-16=20=E9=94=80=E5=94=AE=E6=8A=A5?= =?UTF-8?q?=E4=BB=B7=EF=BC=8C=E5=AE=A1=E6=89=B9=E4=B8=AD=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=BD=93=E5=89=8D=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E4=BA=BA=E6=89=8D=E5=8F=AF=E4=BB=A5=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E3=80=81=E5=A4=8D=E5=88=B6=E6=98=8E=E7=BB=86=E3=80=81=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/quote/detail/quoteDetail.vue | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/views/modules/quote/detail/quoteDetail.vue b/src/views/modules/quote/detail/quoteDetail.vue index 8c9abd6..90694e1 100644 --- a/src/views/modules/quote/detail/quoteDetail.vue +++ b/src/views/modules/quote/detail/quoteDetail.vue @@ -778,6 +778,10 @@ export default { }, methods:{ handleSaveQuoteDetail(row){ + if (row && !this.canOperateQuoteDetail()) { + this.$message.warning('审批中状态下仅当前审批人可编辑') + return + } this.$nextTick(()=>{ if (this.$refs.handleSaveQuoteDetailClick){ this.$refs.saveQuoteDetailForm.clearValidate(); @@ -881,6 +885,10 @@ export default { }) }, handleDeleteQuoteDetail(row){ + if (!this.canOperateQuoteDetail()) { + this.$message.warning('审批中状态下仅当前审批人可删除') + return + } this.$confirm('确认删除该条报价明细吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -1055,6 +1063,10 @@ export default { } }, handleAgainQuoteDetail(row){ + if (!this.canOperateQuoteDetail()) { + this.$message.warning('审批中状态下仅当前审批人可复制明细') + return + } this.againRow = { ...row, showFlag: 'Y' @@ -1194,6 +1206,19 @@ export default { const defaultItemNo = this.internalDefaultItemNoMap[row.quoteGroupDetailId] return defaultItemNo != null && defaultItemNo === row.itemNo; }, + isQuoteApprover() { + const approvalUsername = this.quote && this.quote.approvalUsername + if (!approvalUsername) { + return false + } + return approvalUsername.split(';').includes(this.$store.state.user.name) + }, + canOperateQuoteDetail() { + if (this.quote && this.quote.status === '审批中') { + return this.isQuoteApprover() + } + return true + }, }, watch:{ quote(newVal,oldVal){ @@ -1311,14 +1336,14 @@ export default {