|
|
@ -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() |
|
|
|
}) |
|
|
|
|
|
|
|
</script> |
|
|
|