From b88c4abe02a99e725386b5b2482d273481469de1 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Thu, 15 Jun 2023 11:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AD=98=E6=94=BE=E5=9C=B0?= =?UTF-8?q?=E7=82=B9=E5=8F=98=E6=9B=B4--=E6=95=B0=E6=8D=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90=E3=80=81=E6=9C=AC=E4=BA=BA=E6=9D=83=E9=99=90=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cunfangdidianbiangeng.vue | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue index 87ba4630fb..bf88e20772 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue @@ -331,7 +331,8 @@ export default { locationSid: '', operator: '', userSid: '', - orgPath: '' + orgPath: '', + menuUrl: '' } }, btnList: [ @@ -428,18 +429,6 @@ export default { } }) }, - toEdit() { - if (this.multipleSelection.length === 0) { - this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行编辑' }) - return - } - if (this.multipleSelection.length > 1) { - this.$message({ showClose: true, type: 'error', message: '只能选择一条记录进行编辑' }) - return - } - this.viewState = 3 - this.$refs['divadd'].showEdit(this.sids[0]) - }, doDel() { if (this.multipleSelection.length === 0) { this.$message({ @@ -447,6 +436,10 @@ export default { }) return } + if (!this.multipleSelection[0].allowModify) { + this.$message({ showClose: true, type: 'error', message: '非本人发起的申请,无权限操作' }) + return + } const _this = this const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?' this.$confirm(tip, '提示', { @@ -475,8 +468,12 @@ export default { }) }, handleEdit(row) { - this.viewState = 3 - this.$refs['divadd'].showEdit(row.sid) + if (row.allowModify) { + this.viewState = 3 + this.$refs['divadd'].showEdit(row.sid) + } else { + this.$message({ showClose: true, type: 'error', message: '非本人发起的申请,无权限操作' }) + } }, handleReplenish(row) { getErtraState({ sid: row.sid, userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { @@ -567,7 +564,8 @@ export default { locationSid: '', operator: '', userSid: '', - orgPath: '' + orgPath: '', + menuUrl: '' } } this.getList() @@ -576,6 +574,7 @@ export default { this.tableLoading = true this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') + this.listQuery.params.menuUrl = this.$route.path selectCarTransferList(this.listQuery).then((resp) => { this.tableLoading = false if (resp.success) {