| | |
| | | remove(gridOptions.toolbarConfig.slots) |
| | | const button = {'code': 'printLabel', |
| | | status: 'primary', |
| | | 'name': "成品打印2"} |
| | | 'name': t('processCard.finishedProductPrinting2')} |
| | | gridOptions.toolbarConfig.buttons.push(button) |
| | | |
| | | const button2 = {'code': 'detailPrinting', |
| | | status: 'primary', |
| | | 'name': "明细打印"} |
| | | 'name': t('processCard.detailPrinting')} |
| | | gridOptions.toolbarConfig.buttons.push(button2) |
| | | |
| | | } |
| | |
| | | } |
| | | case 'printLabel': { |
| | | if(rowClickIndex.value===null){ |
| | | ElMessage.warning(t('请选择工程')) |
| | | ElMessage.warning(t('processCard.pleaseSelectProject')) |
| | | return |
| | | } |
| | | labelRow.value.type = '恒鑫' |
| | |
| | | } |
| | | case 'detailPrinting': { |
| | | if(rowClickIndex.value===null){ |
| | | ElMessage.warning(t('请选择工程')) |
| | | ElMessage.warning(t('processCard.pleaseSelectProject')) |
| | | return |
| | | } |
| | | router.push({path: '/main/processCard/PrintProjectDetails', query: {projectNo: rowClickIndex.value.project_no}}) |