扫码枪页面

This commit is contained in:
砂糖
2025-07-31 11:43:31 +08:00
parent b74c977c60
commit 823fdad938
6 changed files with 397 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ export default {
// 拼接条码内容 stockIoId_warehouseId_materialId_quantity
const barcodes = details.filter(el => el.recordType == 0).map(item => {
return {
code: encodeURIComponent(`${item.itemId || ''}`),
code: encodeURIComponent(`${item.itemType}__${item.itemId || ''}`),
count: Math.min(item.quantity, 10),
textTpl: item.itemType == ITEM_TYPE.PRODUCT ?
`${this.productMap[item.itemId]?.productName}[${this.productMap[item.itemId]?.productCode}](${item.quantity})`