Browse Source

添加灯码扫描校验

ljc_0803
lijuncheng 3 months ago
parent
commit
c8727798e2
  1. 5
      src/mycomponents/scan/winComScanFg.vue

5
src/mycomponents/scan/winComScanFg.vue

@ -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 +

Loading…
Cancel
Save