|
|
@@ -316,15 +316,11 @@ const setBarcode = (code, type) => {
|
|
|
if (inputBarcodeType.value === 'lot') {
|
|
|
lotData.value.forEach((lot) => {
|
|
|
if (lot.field == lotField.value) {
|
|
|
- if (lot.type == 'Double') {
|
|
|
- if (isNaN(Number(code))) {
|
|
|
- showToast('请输入正确的数值')
|
|
|
- return
|
|
|
- }
|
|
|
- lot.mapping = Number(code)
|
|
|
- }else{
|
|
|
- lot.mapping = code
|
|
|
+ if (lot.type == 'Double' && isNaN(Number(code))) {
|
|
|
+ showToast('请输入正确的数值')
|
|
|
+ return
|
|
|
}
|
|
|
+ lot.mapping = code
|
|
|
}
|
|
|
})
|
|
|
return
|