| | |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否质检" |
| | | width="100px" |
| | | align="center"> |
| | | <template #default="scope"> |
| | | <el-tag :type="getCheckedType(scope.row.isChecked)" |
| | | size="small"> |
| | | {{ scope.row.isChecked ? '是' : '否' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="税率(%)" |
| | | prop="taxRate" /> |
| | | <el-table-column label="含税单价(元)" |
| | |
| | | 0: "info", |
| | | 1: "warning", |
| | | 2: "success", |
| | | }; |
| | | return typeMap[status] || "info"; |
| | | }; |
| | | // 获取是否质检标签类型 |
| | | const getCheckedType = status => { |
| | | const typeMap = { |
| | | 0: "info", |
| | | 1: "success", |
| | | }; |
| | | return typeMap[status] || "info"; |
| | | }; |
| | |
| | | canvas.width - horizontalPad * 2 |
| | | ); |
| | | const textBlockHeight = lines.length * lineHeight; |
| | | canvas.height = padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad; |
| | | canvas.height = |
| | | padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad; |
| | | |
| | | ctx.fillStyle = "#ffffff"; |
| | | ctx.fillRect(0, 0, canvas.width, canvas.height); |