| | |
| | | toolbarConfig: { |
| | | buttons: [ |
| | | {code: 'printLabel3', name: t('basicData.print'), status: 'primary'}, |
| | | {code: 'printSmallPiece', name: t('小片打印'), status: 'primary'}, |
| | | ], |
| | | zoom: true, |
| | | custom: true |
| | |
| | | } |
| | | break |
| | | } |
| | | case 'printSmallPiece': { |
| | | if (selectRecords === null || selectRecords === '' || selectRecords.length === 0) { |
| | | ElMessage.warning(t('processCard.projectMsg1')) |
| | | return |
| | | } |
| | | let stock_id=[] |
| | | for (let i=0;i<selectRecords.length;i++){ |
| | | stock_id.push(selectRecords[i].stock_id) |
| | | } |
| | | console.log(stock_id) |
| | | router.push({path: '/main/processCard/printProjectDetailSmallPiece', query: {projectNo: projectNo,stockId:JSON.stringify(stock_id)}}) |
| | | break |
| | | } |
| | | } |
| | | } |
| | | }, |