|
@ -188,6 +188,11 @@ |
|
|
// let productDate = content.substr(lengthMat, 8); |
|
|
// let productDate = content.substr(lengthMat, 8); |
|
|
// let batch = content.substr(lengthMat + 8, 3); |
|
|
// let batch = content.substr(lengthMat + 8, 3); |
|
|
let order = content.substr(-8); |
|
|
let order = content.substr(-8); |
|
|
|
|
|
if(content.length!=lengthBc){ |
|
|
|
|
|
that.clear(); |
|
|
|
|
|
throw new Error("解析错误:扫描标签长度与配置条码的长度不一致") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (scanPartNumber != partNumber) { |
|
|
if (scanPartNumber != partNumber) { |
|
|
that.clear(); |
|
|
that.clear(); |
|
|
throw new Error("解析错误:扫描的客户物料号【" + scanPartNumber + |
|
|
throw new Error("解析错误:扫描的客户物料号【" + scanPartNumber + |
|
|