From fb0333ee4771e3081be72e72203594aa3dd00320 Mon Sep 17 00:00:00 2001 From: 123456 <13063093621@163.com> Date: Fri, 22 Mar 2024 23:20:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A9=B3=E5=9B=9E=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E4=BA=BA=E5=91=98=E8=BF=98=E8=83=BD=E5=9C=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CorporatePaymentCard/index.vue | 14 +++++++------- src/components/CorporateReceiptsCard/index.vue | 14 +++++++------- src/components/MyClaimListCard/index.vue | 14 +++++++------- src/components/MyCustomerListCard/index.vue | 12 ++++++------ src/components/MyPayListCard/index.vue | 16 ++++++++-------- src/components/MySupplierListCard/index.vue | 14 +++++++------- src/components/MyTripsListCard/index.vue | 14 +++++++------- 7 files changed, 49 insertions(+), 49 deletions(-) diff --git a/src/components/CorporatePaymentCard/index.vue b/src/components/CorporatePaymentCard/index.vue index e46448f..d214585 100644 --- a/src/components/CorporatePaymentCard/index.vue +++ b/src/components/CorporatePaymentCard/index.vue @@ -48,9 +48,9 @@
- - - + + +
@@ -97,8 +97,8 @@ export default { return } }, - handleEdit(id, status) { - if (status != 0 && status != 3) { + handleEdit(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } this.jumoStudentId = id @@ -107,8 +107,8 @@ export default { query: { id, type: 'edit' } }) }, - handleDel(id, status) { - if (status != 0 && status != 3) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } Dialog.confirm({ diff --git a/src/components/CorporateReceiptsCard/index.vue b/src/components/CorporateReceiptsCard/index.vue index 07ee6a9..52cf94d 100644 --- a/src/components/CorporateReceiptsCard/index.vue +++ b/src/components/CorporateReceiptsCard/index.vue @@ -43,9 +43,9 @@
- - - + + +
@@ -92,8 +92,8 @@ export default { return } }, - handleEdit(id, status) { - if (status != 0 && status != 3) { + handleEdit(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } this.jumoStudentId = id @@ -102,8 +102,8 @@ export default { query: { id, type: 'edit' } }) }, - handleDel(id, status) { - if (status != 0 && status != 3) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } Dialog.confirm({ diff --git a/src/components/MyClaimListCard/index.vue b/src/components/MyClaimListCard/index.vue index 56b6444..a1aea47 100644 --- a/src/components/MyClaimListCard/index.vue +++ b/src/components/MyClaimListCard/index.vue @@ -37,11 +37,11 @@
- - - + +
@@ -98,7 +98,7 @@ export default { }, handleEdit(obj) { const { id, status, billType } = obj - if (status != 0 && status != 3) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } this.jumoStudentId = id @@ -107,8 +107,8 @@ export default { query: { id, type: 'edit', listType: this.listType, billType } }) }, - handleDel(id, status) { - if (status != 0 && status != 3) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } Dialog.confirm({ diff --git a/src/components/MyCustomerListCard/index.vue b/src/components/MyCustomerListCard/index.vue index 6c40ab2..c67ce15 100644 --- a/src/components/MyCustomerListCard/index.vue +++ b/src/components/MyCustomerListCard/index.vue @@ -33,8 +33,8 @@
- - + +
@@ -81,8 +81,8 @@ export default { return } }, - handleEdit(id, status) { - if (status != 0 && status != 3 ) { + handleEdit(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator)) ) { return } this.jumoStudentId = id @@ -91,8 +91,8 @@ export default { query: { id, type: 'edit' } }) }, - handleDel(id, status) { - if (status != 0 && status != 3 ) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator)) ) { return } Dialog.confirm({ diff --git a/src/components/MyPayListCard/index.vue b/src/components/MyPayListCard/index.vue index 194e87a..2923c6c 100644 --- a/src/components/MyPayListCard/index.vue +++ b/src/components/MyPayListCard/index.vue @@ -36,12 +36,12 @@
+ + --> 查看 - 修改 - 删除 + 修改 + 删除 付款确认 取消确认 {{ itemData.payMentStatus == 1 && itemData.status == 2 ? '查看凭证' : itemData.files.length ? '修改凭证' : '上传凭证'}} @@ -122,8 +122,8 @@ export default { return } }, - handleEdit(id, status) { - if (status != 0 && status != 3) { + handleEdit(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } this.jumoStudentId = id @@ -132,8 +132,8 @@ export default { query: { id, type: 'edit' } }) }, - handleDel(id, status) { - if (status != 0 && status != 3) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } Dialog.confirm({ diff --git a/src/components/MySupplierListCard/index.vue b/src/components/MySupplierListCard/index.vue index 6e76f0b..ec6b742 100644 --- a/src/components/MySupplierListCard/index.vue +++ b/src/components/MySupplierListCard/index.vue @@ -36,9 +36,9 @@
- - - + + +
@@ -85,8 +85,8 @@ export default { return } }, - handleEdit(id, status) { - if (status != 0 && status != 3 ) { + handleEdit(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator)) ) { return } this.jumoStudentId = id @@ -95,8 +95,8 @@ export default { query: { id, type: 'edit' } }) }, - handleDel(id, status) { - if (status != 0 && status != 3 ) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator)) ) { return } Dialog.confirm({ diff --git a/src/components/MyTripsListCard/index.vue b/src/components/MyTripsListCard/index.vue index ccdffb6..f8dba39 100644 --- a/src/components/MyTripsListCard/index.vue +++ b/src/components/MyTripsListCard/index.vue @@ -38,11 +38,11 @@ - - - + + @@ -95,7 +95,7 @@ export default { }, handleEdit(obj) { const { id, status, billType } = obj - if (status != 0 && status != 3) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } this.jumoStudentId = id @@ -104,8 +104,8 @@ export default { query: { id, type: 'edit', listType: this.listType, billType } }) }, - handleDel(id, status) { - if (status != 0 && status != 3) { + handleDel(id, status,creator) { + if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) { return } Dialog.confirm({