Browse Source

财务工务按钮权限

intex_online20241224
张立 2 months ago
parent
commit
78ee74c478
  1. 22
      src/views/wms/supplierManage/supplierinvoiceInvoiced/index.vue

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

Loading…
Cancel
Save