|
@@ -782,70 +782,70 @@
|
|
|
console.log('条码类型:' + res.scanType);
|
|
|
console.log('条码内容:' + res.result);
|
|
|
if (cod == 'coding') {
|
|
|
- that.coding = res.result;
|
|
|
+ that.coding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'lutouCoding') {
|
|
|
- that.lutouCoding = res.result;
|
|
|
+ that.lutouCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'jiashiqiCoding') {
|
|
|
- that.jiashiqiCoding = res.result;
|
|
|
+ that.jiashiqiCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'shuibengCoding') {
|
|
|
- that.shuibengCoding = res.result;
|
|
|
+ that.shuibengCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'chugunCoding') {
|
|
|
- that.chugunCoding = res.result;
|
|
|
+ that.chugunCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'dianguiCoding') {
|
|
|
- that.dianguiCoding = res.result;
|
|
|
+ that.dianguiCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'zidongdoorCoding') {
|
|
|
- that.zidongdoorCoding = res.result;
|
|
|
+ that.zidongdoorCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'jixieshouCoding') {
|
|
|
- that.jixieshouCoding = res.result;
|
|
|
+ that.jixieshouCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'yaxingdaoCoding') {
|
|
|
- that.yaxingdaoCoding = res.result;
|
|
|
+ that.yaxingdaoCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'qibengCoding') {
|
|
|
- that.qibengCoding = res.result;
|
|
|
+ that.qibengCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'songtangCoding') {
|
|
|
- that.songtangCoding = res.result;
|
|
|
+ that.songtangCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'shoudongdoorCoding') {
|
|
|
- that.shoudongdoorCoding = res.result;
|
|
|
+ that.shoudongdoorCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'anzhuopingCoding') {
|
|
|
- that.anzhuopingCoding = res.result;
|
|
|
+ that.anzhuopingCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'plcCoding') {
|
|
|
- that.plcCoding = res.result;
|
|
|
+ that.plcCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'jiarebanCoding') {
|
|
|
- that.jiarebanCoding = res.result;
|
|
|
+ that.jiarebanCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'jikeCoding') {
|
|
|
- that.jikeCoding = res.result;
|
|
|
+ that.jikeCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'circulationFan1Coding') {
|
|
|
- that.circulationFan1Coding = res.result;
|
|
|
+ that.circulationFan1Coding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'circulationFan2Coding') {
|
|
|
- that.circulationFan2Coding = res.result;
|
|
|
+ that.circulationFan2Coding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'circulationFan3Coding') {
|
|
|
- that.circulationFan3Coding = res.result;
|
|
|
+ that.circulationFan3Coding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'xiazaiCoding') {
|
|
|
- that.xiazaiCoding = res.result;
|
|
|
+ that.xiazaiCoding = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'orderNo') {
|
|
|
- that.orderNo = res.result;
|
|
|
+ that.orderNo = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
if (cod == 'cardReader') {
|
|
|
- that.cardReader = res.result;
|
|
|
+ that.cardReader = res.result.replace(/\s+/g, '');
|
|
|
}
|
|
|
},
|
|
|
fail(err) {
|