diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue index 607b1656b..c0e71a452 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue @@ -204,11 +204,24 @@ const handleSelectionPoint = async ()=>{ } // 列表-操作按钮 const butttondata = (row,$index) => { - return [] + return [ + { + label: t('ts.查看明细'), + name: 'open_detail', + type: 'primary', + icon: '', + color: '', + hasPermi: 'wms:supplierinvoice-request-main:view-detail', + link: true, // 文本展现按钮 + } + ] } // 列表-操作按钮事件 const buttonTableClick = async (val, row) => { + if (val == 'open_detail') { // 查看明细 + openDetail(row, '单据号', row.number) + } } // 获取部门 用于详情 部门回显 const { wsCache } = useCache() diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts index 36cd58443..7ef6dcaf1 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts @@ -717,7 +717,16 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive([ }, isForm: false, }, - + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 150, + fixed: 'right' + }, + } ])) //表单校验