|
@@ -43,13 +43,13 @@ function printEN(printRow) {
|
|
|
} = printRow;
|
|
|
let ENColor = removeChineseCharacters(productColor) || ''
|
|
|
let res = []
|
|
|
- res.push({ key1: 'GRADE:', key2: productSpecifications, })
|
|
|
- res.push({ key1: 'LOT NO:', key2: qrCode, })
|
|
|
- res.push({ key1: 'COLOR NO:', key2: ENColor + ' ' + lotNum, })
|
|
|
- res.push({ key1: 'CONE NO:', key2: canisterNum, })
|
|
|
- res.push({ key1: 'NET WEIGHT:', key2: suttle, })
|
|
|
- res.push({ key1: 'GROSS WEIGHT:', key2: grossWeight, })
|
|
|
- res.push({ key1: 'CARTON NO:', key2: boxNum, })
|
|
|
+ res.push({ key1: 'GRADE:', key2: productSpecifications || '', })
|
|
|
+ res.push({ key1: 'LOT NO:', key2: qrCode || '', })
|
|
|
+ res.push({ key1: 'COLOR NO:', key2: ENColor || '' + ' ' + lotNum || '', })
|
|
|
+ res.push({ key1: 'CONE NO:', key2: canisterNum || '', })
|
|
|
+ res.push({ key1: 'NET WEIGHT:', key2: suttle || '', })
|
|
|
+ res.push({ key1: 'GROSS WEIGHT:', key2: grossWeight || '', })
|
|
|
+ res.push({ key1: 'CARTON NO:', key2: boxNum || '', })
|
|
|
return res
|
|
|
}
|
|
|
|
|
@@ -71,7 +71,7 @@ function printCN_XSW(printRow) {
|
|
|
printFormat, /*格式*/
|
|
|
productName, /*产品名*/
|
|
|
productSpecifications, /*规格*/
|
|
|
- productColor, /*色泽*/
|
|
|
+ productColour, /*色泽*/
|
|
|
lotNum, /*批次*/
|
|
|
levels,/*等级*/
|
|
|
directionOfTwist,/*捻向*/
|
|
@@ -81,17 +81,17 @@ function printCN_XSW(printRow) {
|
|
|
packaging
|
|
|
} = printRow;
|
|
|
let res = [];
|
|
|
- res.push({ key1: '品种', key2: productName, key3: '规格', key4: productSpecifications })
|
|
|
- res.push({ key1: '批号', key2: lotNum, key3: '色号', key4: productColor })
|
|
|
- res.push({ key1: '等级', key2: levels, key3: '箱号', key4: qrCode, key5: boxNum })
|
|
|
- res.push({ key1: '筒数', key2: canisterNum + ' ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
|
|
|
+ res.push({ key1: '品种', key2: productName || '', key3: '规格', key4: productSpecifications || '' })
|
|
|
+ res.push({ key1: '批号', key2: lotNum || '', key3: '色号', key4: productColour || '' })
|
|
|
+ res.push({ key1: '等级', key2: levels || '', key3: '箱号', key4: qrCode || '', key5: boxNum || '' })
|
|
|
+ res.push({ key1: '筒数', key2: canisterNum || '' + ' ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
|
|
|
res.push({
|
|
|
key1: '班次',
|
|
|
- key2: workShifts + ' ' + machineTool,
|
|
|
+ key2: workShifts || '' + ' ' + machineTool || '',
|
|
|
key3: '日期',
|
|
|
key4: moment(new Date(productionDate)).format('YYYY-MM-DD')
|
|
|
})
|
|
|
- res.push({ key1: '毛重', key2: grossWeight, key3: '净重', key4: suttle })
|
|
|
+ res.push({ key1: '毛重', key2: grossWeight || '', key3: '净重', key4: suttle || '' })
|
|
|
return res
|
|
|
}
|
|
|
|
|
@@ -123,17 +123,17 @@ function printCN_WJZ(printRow) {
|
|
|
packaging
|
|
|
} = printRow;
|
|
|
let res = [];
|
|
|
- res.push({ key1: '品种', key2: productName, key3: '规格', key4: productSpecifications })
|
|
|
- res.push({ key1: '批号', key2: lotNum, key3: '色号', key4: productColor })
|
|
|
- res.push({ key1: '等级', key2: levels, key3: '箱号', key4: qrCode, key5: boxNum })
|
|
|
- res.push({ key1: '筒数', key2: canisterNum + ' ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
|
|
|
+ res.push({ key1: '品种', key2: productName || '', key3: '规格', key4: productSpecifications || '' })
|
|
|
+ res.push({ key1: '批号', key2: lotNum || '', key3: '色号', key4: productColor || '' })
|
|
|
+ res.push({ key1: '等级', key2: levels || '', key3: '箱号', key4: qrCode || '', key5: boxNum || '' })
|
|
|
+ res.push({ key1: '筒数', key2: canisterNum || '' + ' ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
|
|
|
res.push({
|
|
|
key1: '班次',
|
|
|
- key2: workShifts + ' ' + machineTool,
|
|
|
+ key2: workShifts || '' + ' ' + machineTool || '',
|
|
|
key3: '日期',
|
|
|
key4: moment(new Date(productionDate)).format('YYYY-MM-DD')
|
|
|
})
|
|
|
- res.push({ key1: '毛重', key2: grossWeight, key3: '净重', key4: " " })
|
|
|
+ res.push({ key1: '毛重', key2: grossWeight || '', key3: '净重', key4: " " })
|
|
|
return res
|
|
|
}
|
|
|
|
|
@@ -167,11 +167,11 @@ function printCN_ZMD(printRow) {
|
|
|
boxSumNum, /* 箱总数 */
|
|
|
} = printRow;
|
|
|
let res = [];
|
|
|
- res.push({ key1: '品种', key2: productName, key3: '规格', key4: productSpecifications })
|
|
|
- res.push({ key1: '色泽', key2: productColour, key3: '等级', key4: levels })
|
|
|
- res.push({ key1: '批号', key2: lotNum, key3: '管色', key4: tubeColor })
|
|
|
- res.push({ key1: '单号', key2: qrCode, key3: '日期', key4: moment(new Date(productionDate)).format('YYYY-MM-DD') })
|
|
|
- res.push({ key1: '箱数', key2: boxSumNum + '', key3: '筒数', key4: canisterNum })
|
|
|
+ res.push({ key1: '品种', key2: productName || '', key3: '规格', key4: productSpecifications || '' })
|
|
|
+ res.push({ key1: '色泽', key2: productColour || '', key3: '等级', key4: levels || '' })
|
|
|
+ res.push({ key1: '批号', key2: lotNum || '', key3: '管色', key4: tubeColor || '' })
|
|
|
+ res.push({ key1: '单号', key2: qrCode || '', key3: '日期', key4: moment(new Date(productionDate)).format('YYYY-MM-DD') })
|
|
|
+ res.push({ key1: '箱数', key2: boxSumNum || '' + '', key3: '筒数', key4: canisterNum || '' })
|
|
|
// res.push({ key1: '筒数', key2: canisterNum + ' ' + tubeColor, key3: '捻向', key4: directionOfTwistLabel || ' ', })
|
|
|
// res.push({
|
|
|
// key1: '班次',
|
|
@@ -179,6 +179,6 @@ function printCN_ZMD(printRow) {
|
|
|
// key3: '日期',
|
|
|
// key4: moment(new Date(productionDate)).format('YYYY-MM-DD')
|
|
|
// })
|
|
|
- res.push({ key1: '毛重', key2: grossWeight, key3: '净重', key4: suttle })
|
|
|
+ res.push({ key1: '毛重', key2: grossWeight || '', key3: '净重', key4: suttle || '' })
|
|
|
return res
|
|
|
}
|