|
@@ -4,31 +4,54 @@ export const tem30x30 = (command: any, info: any[], item: any) => {
|
|
|
const leftInfo = info[0];
|
|
const leftInfo = info[0];
|
|
|
const rightInfo = info?.[1];
|
|
const rightInfo = info?.[1];
|
|
|
command.setText(30, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
command.setText(30, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
- command.setText(30, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.specn);
|
|
|
|
|
|
|
+ if (+leftInfo?.restFlag) {
|
|
|
|
|
+ command.setText(30, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.restSpecn);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ command.setText(30, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.specn);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
command.setQR(55, 75, 'L', 4, 'A', leftInfo.url);
|
|
command.setQR(55, 75, 'L', 4, 'A', leftInfo.url);
|
|
|
// 底部加sn序号
|
|
// 底部加sn序号
|
|
|
- command.setText(80, 190, 'TSS16.BF2', 1, 1, leftInfo.padSn);
|
|
|
|
|
|
|
+ command.setText(90, 195, 'TSS16.BF2', 1, 1, leftInfo.padSn);
|
|
|
if (rightInfo) {
|
|
if (rightInfo) {
|
|
|
command.setText(280, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
command.setText(280, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
- command.setText(280, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.specn);
|
|
|
|
|
|
|
+ if (+rightInfo?.restFlag) {
|
|
|
|
|
+ command.setText(280, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.restSpecn);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ command.setText(280, 40, 'TSS16.BF2', 1, 1, '数量(重量):' + item.specn);
|
|
|
|
|
+ }
|
|
|
command.setQR(315, 75, 'L', 4, 'A', rightInfo.url);
|
|
command.setQR(315, 75, 'L', 4, 'A', rightInfo.url);
|
|
|
- command.setText(330, 190, 'TSS16.BF2', 1, 1, rightInfo.padSn);
|
|
|
|
|
|
|
+ command.setText(345, 195, 'TSS16.BF2', 1, 1, rightInfo.padSn);
|
|
|
}
|
|
}
|
|
|
return command;
|
|
return command;
|
|
|
};
|
|
};
|
|
|
export const tem60x40 = (command: any, info: any, item: any) => {
|
|
export const tem60x40 = (command: any, info: any, item: any) => {
|
|
|
- command.setQR(320, 150, 'L', 4, 'A', info.traceCode);
|
|
|
|
|
- command.setText(30, 30, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
|
|
- command.setText(30, 60, 'TSS16.BF2', 1, 1, '规格等级:' + item.proSpecn);
|
|
|
|
|
- command.setText(30, 90, 'TSS16.BF2', 1, 1, '产地:' + item.proAdcodeDesc);
|
|
|
|
|
- command.setText(30, 120, 'TSS16.BF2', 1, 1, '供应商:' + item.cpyName);
|
|
|
|
|
|
|
+ command.setText(30, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
|
|
+ command.setText(30, 35, 'TSS16.BF2', 1, 1, '批号:' + item.batchSn);
|
|
|
|
|
+ if (+info.restFlag) {
|
|
|
|
|
+ command.setText(30, 60, 'TSS16.BF2', 1, 1, '数量/重量:' + item.restSpecn);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ command.setText(30, 60, 'TSS16.BF2', 1, 1, '数量/重量:' + item.specn);
|
|
|
|
|
+ }
|
|
|
|
|
+ command.setText(280, 60, 'TSS16.BF2', 1, 1, '规格等级:' + item.proLevel);
|
|
|
|
|
+ command.setText(30, 85, 'TSS16.BF2', 1, 1, '产地:' + item.proAdcodeDesc);
|
|
|
|
|
+ command.setText(30, 110, 'TSS16.BF2', 1, 1, '供应商:' + item.cpyName);
|
|
|
|
|
+ command.setQR(50, 135, 'L', 4, 'A', info.url);
|
|
|
|
|
+ command.setText(80, 255, 'TSS16.BF2', 1, 1, info.padSn);
|
|
|
return command;
|
|
return command;
|
|
|
};
|
|
};
|
|
|
export const tem60x60 = (command: any, info: any, item: any) => {
|
|
export const tem60x60 = (command: any, info: any, item: any) => {
|
|
|
- command.setQR(320, 150, 'L', 4, 'A', info.traceCode);
|
|
|
|
|
- command.setText(30, 30, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
|
|
- command.setText(30, 60, 'TSS16.BF2', 1, 1, '规格等级:' + item.proSpecn);
|
|
|
|
|
- command.setText(30, 90, 'TSS16.BF2', 1, 1, '产地:' + item.proAdcodeDesc);
|
|
|
|
|
- command.setText(30, 120, 'TSS16.BF2', 1, 1, '供应商:' + item.cpyName);
|
|
|
|
|
|
|
+ command.setText(30, 10, 'TSS16.BF2', 1, 1, '品名:' + item.proName);
|
|
|
|
|
+ if (+info.restFlag) {
|
|
|
|
|
+ command.setText(30, 35, 'TSS16.BF2', 1, 1, '数量/重量:' + item.restSpecn);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ command.setText(30, 35, 'TSS16.BF2', 1, 1, '数量/重量:' + item.specn);
|
|
|
|
|
+ }
|
|
|
|
|
+ command.setText(30, 60, 'TSS16.BF2', 1, 1, '规格等级:' + item.proLevel);
|
|
|
|
|
+ command.setText(30, 85, 'TSS16.BF2', 1, 1, '批号:' + item.batchSn);
|
|
|
|
|
+ command.setText(30, 110, 'TSS16.BF2', 1, 1, '产地:' + item.proAdcodeDesc);
|
|
|
|
|
+ command.setText(30, 135, 'TSS16.BF2', 1, 1, '供应商:' + item.cpyName);
|
|
|
|
|
+ command.setQR(50, 160, 'L', 4, 'A', info.url);
|
|
|
|
|
+ command.setText(80, 280, 'TSS16.BF2', 1, 1, info.padSn);
|
|
|
return command;
|
|
return command;
|
|
|
};
|
|
};
|