| | |
| | | const button = {'code': 'printLabel', |
| | | status: 'primary', |
| | | 'name': t('processCard.finishedProductPrinting2')} |
| | | gridOptions.toolbarConfig.buttons.push(button) |
| | | let name=company.companyName |
| | | if (name != '金华福喜天成玻璃有限公司') { |
| | | gridOptions.toolbarConfig.buttons.push(button) |
| | | } |
| | | |
| | | |
| | | |
| | | const button2 = {'code': 'detailPrinting', |
| | | status: 'primary', |
| | |
| | | id: 'childLabel', |
| | | }) |
| | | |
| | | |
| | | const hideButton = () => { |
| | | let name=company.companyName |
| | | // 根据条件值 hidePrintLabels 过滤按钮数组 |
| | | gridOptions.toolbarConfig.buttons = gridOptions.toolbarConfig.buttons.filter(button => { |
| | | // 这里根据 hidePrintLabels 的值决定是否隐藏 printLabel 和 printLabel2 |
| | | if (name == '金华福喜天成玻璃有限公司') { |
| | | return button.code !== 'printLabel'; |
| | | } |
| | | }) |
| | | } |
| | | </script> |
| | | |
| | | <template> |