|
@@ -13,6 +13,9 @@ export function getServerPrintData(printRow) {
|
|
|
return result
|
|
|
|
|
|
}
|
|
|
+function removeChineseCharacters(str) {
|
|
|
+ return str.replace(/[\u4e00-\u9fa5]/g, '');
|
|
|
+}
|
|
|
|
|
|
function printEN(printRow) {
|
|
|
let {
|
|
@@ -26,6 +29,7 @@ function printEN(printRow) {
|
|
|
lotNum, //批次
|
|
|
boxNum, //箱号
|
|
|
} = printRow;
|
|
|
+ let ENColor = removeChineseCharacters(productColor) || ''
|
|
|
let res = []
|
|
|
res.push({
|
|
|
key1: 'GRADE:',
|
|
@@ -37,7 +41,7 @@ function printEN(printRow) {
|
|
|
})
|
|
|
res.push({
|
|
|
key1: 'COLOR NO.:',
|
|
|
- key2: productColor + ' ' + lotNum,
|
|
|
+ key2: ENColor + ' ' + lotNum,
|
|
|
})
|
|
|
res.push({
|
|
|
key1: 'CONE NO.:',
|