From 78ee74c47847212c67bb5d3adc2fd15261593ace Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 19 Dec 2024 14:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E5=B7=A5=E5=8A=A1=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceInvoiced/index.vue | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue b/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue index d79a50b74..671d71571 100644 --- a/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue +++ b/src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue @@ -147,7 +147,15 @@ const buttonBaseClick = (val, item) => { } // 列表-操作按钮 -const butttondata = (row) =>{ +const butttondata = (row) => { + const hasPermi = ref('') + if (routeName.value == 'SupplierinvoiceInvoiced') { + // 待开票数据查询-财务 + hasPermi.value = 'wms:supplierinvoice-invoiced:' + } else if (routeName.value == 'SupplierinvoiceInvoicedWork') { + // 待开票数据查询-工务 + hasPermi.value = 'wms:supplierinvoice-invoiced-work:' + } return [ // defaultButtons.mainListEditBtn({hasPermi:'wms:supplierinvoice-invoiced:update'}), // 编辑 // defaultButtons.mainListDeleteBtn({hasPermi:'wms:supplierinvoice-invoiced:delete'}), // 删除 @@ -159,7 +167,7 @@ const butttondata = (row) =>{ type: 'primary', color: '', link: true, // 文本展现按钮 - hasPermi: 'wms:supplierinvoice-invoiced:agree' + hasPermi: hasPermi.value +'agree' }, { label: t('作废'), @@ -168,7 +176,7 @@ const butttondata = (row) =>{ type: 'danger', color: '', link: true, // 文本展现按钮 - hasPermi: 'wms:supplierinvoice-invoiced:refuse' + hasPermi: hasPermi.value +'refuse' } ] } @@ -329,21 +337,21 @@ const getFiled=()=> { SupplierinvoiceInvoicedAllSchemas.value.allSchemas.tableColumns = SupplierinvoiceInvoicedAllSchemas.value.allSchemas.tableColumns.filter(item=>item.field!='purchasePrice') SupplierinvoiceInvoicedAllSchemas.value.allSchemas.tableFormColumns = SupplierinvoiceInvoicedAllSchemas.value.allSchemas.tableFormColumns.filter(item => item.field != 'purchasePrice') SupplierinvoiceInvoicedAllSchemas.value.allSchemas.detailSchema = SupplierinvoiceInvoicedAllSchemas.value.allSchemas.detailSchema.filter(item => item.field != 'purchasePrice') - console.log(755,SupplierinvoiceInvoicedAllSchemas.value.allSchemas) tableColumns .value= SupplierinvoiceInvoicedAllSchemas.value.allSchemas.tableColumns } } /** 初始化 **/ onMounted(async () => { - getList() - getFiled() + await getList() + await getFiled() // importTemplateData.templateUrl = await SupplierinvoiceInvoicedApi.importTemplate() }) onActivated(async () => { routeName.value = route.name - getFiled() + await getFiled() + await getList() })