Эх сурвалжийг харах

标签打印调整:条形码改为二维码

liqianyi 1 жил өмнө
parent
commit
9f7207bcfb

+ 2 - 1
src/views/modules/production/components/print-label.vue

@@ -178,7 +178,8 @@ export default {
       // command.setText(50, 130, "TSS24.BF2", 0, 0, "检  字 号:101029") // 文本
       // command.setText(50, 180, "TSS24.BF2", 0, 0, "原材料炉批号:YXL-83829") // 文本
       // command.setText(50, 170, "TSS24.BF2", 0, 0, "备注:这是一个备注") // 文本
-      command.setBar(50, start + 5 * len, 'EAN13', 64, 1, 2, 4, this.dataForm.id) // 一维码
+      // command.setBar(50, start + 5 * len, '128', 64, 1, 2, 4, this.dataForm.id) // 条形码
+      command.setQR(50, start + 5 * len, 'H', 3, 'A', this.dataForm.id.toString()) // 二维码
       command.setPagePrint()
       await this.writePrintData(getDataView(command.getData()))
     },